Garethp /
php-ews
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Created by PhpStorm. |
||
| 4 | * User: gareth |
||
| 5 | * Date: 27-8-15 |
||
| 6 | * Time: 10:27 |
||
| 7 | */ |
||
| 8 | |||
| 9 | namespace garethp\ews\API; |
||
| 10 | |||
| 11 | use garethp\ews\Caster; |
||
|
0 ignored issues
–
show
|
|||
| 12 | |||
| 13 | trait MagicMethodsTrait |
||
| 14 | { |
||
| 15 | 46 | public function __set($name, $value) |
|
| 16 | { |
||
| 17 | 46 | if (is_object($value) && !($value instanceof Type) && property_exists($value, "Entry")) { |
|
| 18 | 7 | $value = $value->Entry; |
|
| 19 | } |
||
| 20 | |||
| 21 | 46 | if ($this->methodExists("set" . ucfirst($name))) { |
|
| 22 | 46 | $convertedValue = TypeConverter::convertValueToExpectedType($this, $value, $name); |
|
| 23 | 46 | $this->{"set" . ucfirst($name)}($convertedValue); |
|
| 24 | 46 | return; |
|
| 25 | } |
||
| 26 | |||
| 27 | 5 | if (!$this->exists($name) && $this->exists(lcfirst($name))) { |
|
| 28 | $name = lcfirst($name); |
||
| 29 | } |
||
| 30 | |||
| 31 | 5 | $this->$name = $value; |
|
| 32 | } |
||
| 33 | |||
| 34 | 38 | public function exists($name) |
|
| 35 | { |
||
| 36 | 38 | return property_exists($this, $name); |
|
| 37 | } |
||
| 38 | |||
| 39 | 46 | public function methodExists($name) |
|
| 40 | { |
||
| 41 | 46 | return method_exists($this, $name); |
|
| 42 | } |
||
| 43 | } |
||
| 44 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths