| 1 | <?php |
||
| 10 | class TranslationLoader extends FileLoader |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Load the messages for the given locale. |
||
| 14 | * |
||
| 15 | * @param string $locale |
||
| 16 | * @param string $group |
||
| 17 | * @param string $namespace |
||
| 18 | * |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | public function load($locale, $group, $namespace = null) : array |
||
| 35 | |||
| 36 | protected function fetchFragments(string $group, string $locale) : array |
||
| 50 | } |
||
| 51 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.