1 | <?php |
||
28 | class RayAspectKernel implements AspectDriverInterface |
||
29 | { |
||
30 | /** @var Container */ |
||
31 | protected $app; |
||
32 | |||
33 | /** @var array */ |
||
34 | protected $configure; |
||
35 | |||
36 | /** @var Compiler */ |
||
37 | protected $compiler; |
||
38 | |||
39 | /** @var Filesystem */ |
||
40 | protected $filesystem; |
||
41 | |||
42 | /** @var bool */ |
||
43 | protected $cacheable = false; |
||
44 | |||
45 | /** @var \Ytake\LaravelAspect\Modules\AspectModule */ |
||
46 | protected $aspectResolver; |
||
47 | |||
48 | /** |
||
49 | * RayAspectKernel constructor. |
||
50 | * |
||
51 | * @param Container $app |
||
52 | * @param Filesystem $filesystem |
||
53 | * @param array $configure |
||
54 | */ |
||
55 | public function __construct(Container $app, Filesystem $filesystem, array $configure) |
||
64 | |||
65 | /** |
||
66 | * @param null $module |
||
67 | * |
||
68 | * @throws ClassNotFoundException |
||
69 | */ |
||
70 | public function register($module = null) |
||
78 | |||
79 | /** |
||
80 | * boot aspect kernel |
||
81 | */ |
||
82 | public function dispatch() |
||
100 | |||
101 | /** |
||
102 | * @return Compiler |
||
103 | */ |
||
104 | protected function getCompiler() |
||
108 | |||
109 | /** |
||
110 | * make source compile file directory |
||
111 | * |
||
112 | * @return void |
||
113 | */ |
||
114 | protected function makeCompileDir() |
||
118 | |||
119 | /** |
||
120 | * make aspect cache directory |
||
121 | * |
||
122 | * @codeCoverageIgnore |
||
123 | * @return void |
||
124 | */ |
||
125 | protected function makeCacheableDir() |
||
132 | |||
133 | /** |
||
134 | * @param string $dir |
||
135 | * @param int $mode |
||
136 | */ |
||
137 | private function makeDirectories($dir, $mode = 0777) |
||
145 | |||
146 | /** |
||
147 | * @param string $class |
||
148 | * @param string $compiledClass |
||
149 | */ |
||
150 | protected function resolveContextualBindings($class, $compiledClass) |
||
158 | } |
||
159 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: