Completed
Branch master (b1a112)
by Matt
01:28
created
Labels
Severity
1
<?php
2
/**
3
 *
4
 * Ideas extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace phpbb\ideas;
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
1 ignored issue
show
The type phpbb\extension\base was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
{
23
	/**
24
	 * Check whether or not 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.1 due to use of $event->update_subarray()
29
	 *
30
	 * @return bool
31
	 * @access public
32
	 */
33
	public function is_enableable()
34
	{
35
		return phpbb_version_compare(PHPBB_VERSION, '3.2.1', '>=');
2 ignored issues
show
The constant phpbb\ideas\PHPBB_VERSION was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
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 ignore-call  annotation

35
		return /** @scrutinizer ignore-call */ phpbb_version_compare(PHPBB_VERSION, '3.2.1', '>=');
Loading history...
36
	}
37
}
38