mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/10716] Only lint on php 5.3+.
PHPBB3-10716
This commit is contained in:
@@ -11,6 +11,11 @@ class phpbb_lint_test extends phpbb_test_case
|
|||||||
{
|
{
|
||||||
public function test_lint()
|
public function test_lint()
|
||||||
{
|
{
|
||||||
|
if (version_compare(PHP_VERSION, '5.3.0', '<'))
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('phpBB uses PHP 5.3 syntax in some files, linting on PHP < 5.3 will fail');
|
||||||
|
}
|
||||||
|
|
||||||
$root = dirname(__FILE__) . '/..';
|
$root = dirname(__FILE__) . '/..';
|
||||||
$this->check($root);
|
$this->check($root);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user