We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 32 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | private function accessProperty(string $type, string $name, $value = null) |
||
| 23 | { |
||
| 24 | if (\in_array($name, \array_keys(\get_object_vars($this)))) { |
||
| 25 | $method = $type.\ucfirst($name); |
||
| 26 | |||
| 27 | @\trigger_error( |
||
|
|
|||
| 28 | \sprintf( |
||
| 29 | '%sting directly property %s::$%s value is deprecated as of 0.12 and will be removed in 0.13. '. |
||
| 30 | 'You should now use method %s::%s.', |
||
| 31 | \ucfirst($type), |
||
| 32 | __CLASS__, |
||
| 33 | $name, |
||
| 34 | __CLASS__, |
||
| 35 | $method |
||
| 36 | ), |
||
| 37 | \E_USER_DEPRECATED |
||
| 38 | ); |
||
| 39 | |||
| 40 | return $this->$method($value); |
||
| 41 | } |
||
| 42 | |||
| 43 | \trigger_error( |
||
| 44 | \sprintf( |
||
| 45 | 'Undefined property %s::$%s.', |
||
| 46 | __CLASS__, |
||
| 47 | $name |
||
| 48 | ), |
||
| 49 | \E_USER_NOTICE |
||
| 50 | ); |
||
| 51 | |||
| 52 | return null; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
If you suppress an error, we recommend checking for the error condition explicitly: