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) |
||
65 | |||
66 | /** |
||
67 | * @param null|string $module |
||
68 | * |
||
69 | * @throws ClassNotFoundException |
||
70 | */ |
||
71 | public function register($module = null) |
||
79 | |||
80 | /** |
||
81 | * boot aspect kernel |
||
82 | */ |
||
83 | public function dispatch() |
||
105 | |||
106 | /** |
||
107 | * @return Compiler |
||
108 | */ |
||
109 | protected function getCompiler() |
||
113 | |||
114 | /** |
||
115 | * make source compile file directory |
||
116 | * |
||
117 | * @return void |
||
118 | */ |
||
119 | protected function makeCompileDir() |
||
123 | |||
124 | /** |
||
125 | * make aspect cache directory |
||
126 | * |
||
127 | * @codeCoverageIgnore |
||
128 | * @return void |
||
129 | */ |
||
130 | protected function makeCacheableDir() |
||
137 | |||
138 | /** |
||
139 | * @param string $dir |
||
140 | * @param int $mode |
||
141 | */ |
||
142 | private function makeDirectories($dir, $mode = 0777) |
||
150 | |||
151 | /** |
||
152 | * register Aspect Module |
||
153 | */ |
||
154 | protected function registerAspectModule() |
||
162 | |||
163 | /** |
||
164 | * @param string $class |
||
165 | * @param string $compiledClass |
||
166 | */ |
||
167 | protected function resolveContextualBindings($class, $compiledClass) |
||
175 | } |
||
176 |
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: