| 1 | <?php |
||
| 5 | abstract class BaseSender implements SendsNotifications |
||
| 6 | { |
||
| 7 | const TYPE_SUCCESS = 'success'; |
||
| 8 | const TYPE_ERROR = 'error'; |
||
| 9 | |||
| 10 | /** @var type */ |
||
| 11 | protected $type; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $subject; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | protected $message; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $type |
||
| 21 | * |
||
| 22 | * @return \EricMakesStuff\ServerMonitor\Notifications\SendsNotifications |
||
| 23 | */ |
||
| 24 | public function setType($type) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $subject |
||
| 33 | * |
||
| 34 | * @return \EricMakesStuff\ServerMonitor\Notifications\SendsNotifications |
||
| 35 | */ |
||
| 36 | public function setSubject($subject) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $message |
||
| 45 | * |
||
| 46 | * @return \EricMakesStuff\ServerMonitor\Notifications\SendsNotifications |
||
| 47 | */ |
||
| 48 | public function setMessage($message) |
||
| 54 | } |
||
| 55 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..