1 | <?php |
||
33 | class FilesHooksStatic { |
||
34 | |||
35 | /** |
||
36 | * @return FilesHooks |
||
37 | */ |
||
38 | static protected function getHooks() { |
||
41 | |||
42 | /** |
||
43 | * Store the create hook events |
||
44 | * @param array $params The hook params |
||
45 | */ |
||
46 | public static function fileCreate($params) { |
||
49 | |||
50 | /** |
||
51 | * Store the update hook events |
||
52 | * @param array $params The hook params |
||
53 | */ |
||
54 | public static function fileUpdate($params) { |
||
57 | |||
58 | /** |
||
59 | * Store the delete hook events |
||
60 | * @param array $params The hook params |
||
61 | */ |
||
62 | public static function fileDelete($params) { |
||
65 | |||
66 | /** |
||
67 | * Store the rename hook events |
||
68 | * @param array $params The hook params |
||
69 | */ |
||
70 | public static function fileMove($params) { |
||
73 | |||
74 | /** |
||
75 | * Store the rename hook events |
||
76 | * @param array $params The hook params |
||
77 | */ |
||
78 | public static function fileMovePost($params) { |
||
81 | |||
82 | /** |
||
83 | * Store the restore hook events |
||
84 | * @param array $params The hook params |
||
85 | */ |
||
86 | public static function fileRestore($params) { |
||
89 | |||
90 | /** |
||
91 | * Manage sharing events |
||
92 | * @param array $params The hook params |
||
93 | */ |
||
94 | public static function share($params) { |
||
97 | |||
98 | /** |
||
99 | * Unsharing event |
||
100 | * @param GenericEvent $event |
||
101 | */ |
||
102 | public static function unShare(GenericEvent $event) { |
||
108 | } |
||
109 |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.json
file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.json
to be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
require
orrequire-dev
section?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceof
checks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.