1 | <?php |
||||
2 | /** |
||||
3 | * |
||||
4 | * Topic Prefixes extension for the phpBB Forum Software package. |
||||
5 | * |
||||
6 | * @copyright (c) 2016 phpBB Limited <https://www.phpbb.com> |
||||
7 | * @license GNU General Public License, version 2 (GPL-2.0) |
||||
8 | * |
||||
9 | */ |
||||
10 | |||||
11 | namespace phpbb\topicprefixes; |
||||
12 | |||||
13 | /** |
||||
14 | * This ext class is optional and can be omitted if left empty. |
||||
15 | * However you can add special (un)installation commands in the |
||||
16 | * methods enable_step(), disable_step() and purge_step(). As it is, |
||||
17 | * these methods are defined in \phpbb\extension\base, which this |
||||
18 | * class extends, but you can overwrite them to give special |
||||
19 | * instructions for those cases. |
||||
20 | */ |
||||
21 | class ext extends \phpbb\extension\base |
||||
0 ignored issues
–
show
|
|||||
22 | { |
||||
23 | /** |
||||
24 | * Check whether the extension can be enabled. |
||||
25 | * The current phpBB version should meet or exceed |
||||
26 | * the minimum version required by this extension: |
||||
27 | * |
||||
28 | * Requires phpBB 3.2.0 and PHP 5.4 |
||||
29 | * |
||||
30 | * @return bool |
||||
31 | */ |
||||
32 | public function is_enableable() |
||||
33 | { |
||||
34 | return phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=') |
||||
0 ignored issues
–
show
The function
phpbb_version_compare was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
35 | && phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<') |
||||
36 | && PHP_VERSION_ID >= 50400; |
||||
37 | } |
||||
38 | } |
||||
39 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths