1 | <?php |
||
19 | class ActivityLogger |
||
20 | { |
||
21 | use Macroable; |
||
22 | |||
23 | /** @var \Illuminate\Auth\AuthManager */ |
||
24 | protected $auth; |
||
25 | |||
26 | /** @var ActivityLogHandlerInterface[] */ |
||
27 | protected $logHandlers = []; |
||
28 | |||
29 | protected $logName = ''; |
||
30 | /** @var bool */ |
||
31 | protected $logEnabled; |
||
32 | /** @var \Illuminate\Database\Eloquent\Model */ |
||
33 | protected $performedOn; |
||
34 | /** @var \Illuminate\Database\Eloquent\Model */ |
||
35 | protected $causedBy; |
||
36 | /** @var \Illuminate\Support\Collection */ |
||
37 | protected $properties; |
||
38 | |||
39 | public function __construct(AuthManager $auth) |
||
55 | |||
56 | public function performedOn(Model $model) |
||
61 | |||
62 | public function on(Model $model) |
||
66 | |||
67 | public function causedBy(Model $model) |
||
72 | |||
73 | public function by($modelOrId) |
||
77 | |||
78 | /** |
||
79 | * @param array|\Illuminate\Support\Collection $properties |
||
80 | * |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function withProperties($properties) |
||
88 | |||
89 | /** |
||
90 | * @param string $key |
||
91 | * @param mixed $value |
||
92 | * |
||
93 | * @return $this |
||
94 | */ |
||
95 | public function withProperty($key, $value) |
||
100 | |||
101 | public function useLog($logName) |
||
106 | |||
107 | public function inLog($logName) |
||
111 | |||
112 | public function log($description) |
||
123 | |||
124 | /** |
||
125 | * @param $handler |
||
126 | * @return ActivityLogHandlerInterface |
||
127 | * @throws InvalidConfiguration |
||
128 | */ |
||
129 | private function determineHandler($handler) |
||
143 | |||
144 | /** |
||
145 | * Clean out old entries in the log. |
||
146 | * |
||
147 | * @return bool |
||
148 | */ |
||
149 | public function cleanLog() |
||
162 | |||
163 | protected function replacePlaceholders($description) |
||
175 | |||
176 | function getBetween($content,$start,$end){ |
||
184 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: