1 | <?php |
||
29 | class RayAspectKernel implements AspectDriverInterface |
||
30 | { |
||
31 | /** @var Container|\Illuminate\Container\Container */ |
||
32 | protected $app; |
||
33 | |||
34 | /** @var array */ |
||
35 | protected $configure; |
||
36 | |||
37 | /** @var Compiler */ |
||
38 | protected $compiler; |
||
39 | |||
40 | /** @var Filesystem */ |
||
41 | protected $filesystem; |
||
42 | |||
43 | /** @var bool */ |
||
44 | protected $cacheable = false; |
||
45 | |||
46 | /** @var AspectModule */ |
||
47 | protected $aspectResolver; |
||
48 | |||
49 | /** @var AspectModule[] */ |
||
50 | protected $registerModules = []; |
||
51 | |||
52 | /** @var AspectModule[] */ |
||
53 | protected $modules = []; |
||
54 | |||
55 | /** @var string */ |
||
56 | private $mapFile = 'aspect.map.serialize'; |
||
57 | |||
58 | /** |
||
59 | * RayAspectKernel constructor. |
||
60 | * |
||
61 | * @param Container $app |
||
62 | * @param Filesystem $filesystem |
||
63 | * @param array $configure |
||
64 | */ |
||
65 | public function __construct(Container $app, Filesystem $filesystem, array $configure) |
||
74 | |||
75 | /** |
||
76 | * @param null|string $module |
||
77 | * |
||
78 | * @throws ClassNotFoundException |
||
79 | */ |
||
80 | public function register($module = null) |
||
87 | |||
88 | /** |
||
89 | * weaving |
||
90 | */ |
||
91 | public function weave() |
||
104 | |||
105 | /** |
||
106 | * @deprecated |
||
107 | * boot aspect kernel |
||
108 | */ |
||
109 | public function dispatch() |
||
113 | |||
114 | /** |
||
115 | * @param Container $container |
||
116 | * |
||
117 | * @return ContainerInterceptor |
||
118 | */ |
||
119 | protected function containerAdaptor(Container $container) |
||
123 | |||
124 | /** |
||
125 | * @return Compiler |
||
126 | */ |
||
127 | protected function getCompiler() |
||
131 | |||
132 | /** |
||
133 | * make source compile file directory |
||
134 | */ |
||
135 | protected function makeCompileDir() |
||
139 | |||
140 | /** |
||
141 | * make aspect cache directory |
||
142 | * |
||
143 | * @codeCoverageIgnore |
||
144 | */ |
||
145 | protected function makeCacheableDir() |
||
152 | |||
153 | /** |
||
154 | * @param string $dir |
||
155 | * @param int $mode |
||
156 | */ |
||
157 | private function makeDirectories($dir, $mode = 0777) |
||
165 | |||
166 | /** |
||
167 | * register Aspect Module |
||
168 | */ |
||
169 | protected function registerAspectModule() |
||
177 | |||
178 | /** |
||
179 | * @return string[] |
||
180 | * @codeCoverageIgnore |
||
181 | */ |
||
182 | protected function aspectConfiguration() |
||
207 | } |
||
208 |
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: