Skip to content

Commit a5b9556

Browse files
committed
Revert "Enable strict mode on PHP files"
This reverts commit 17da8a3. Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent b988a6a commit a5b9556

File tree

159 files changed

+101
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+101
-174
lines changed

bin/highlight-query

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env php
22
<?php
3-
declare(strict_types=1);
43

54
$files = array(
65
__DIR__ . "/../vendor/autoload.php",

bin/lint-query

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env php
22
<?php
3-
declare(strict_types=1);
43

54
$files = array(
65
__DIR__ . "/../vendor/autoload.php",
@@ -28,3 +27,4 @@ if (!$found) {
2827

2928
$cli = new PhpMyAdmin\SqlParser\Utils\CLI();
3029
exit($cli->runLint());
30+

bin/tokenize-query

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env php
22
<?php
3-
declare(strict_types=1);
43

54
$files = array(
65
__DIR__ . "/../vendor/autoload.php",

src/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Defines a component that is later extended to parse specialized components or
45
* keywords.
@@ -7,7 +8,6 @@
78
* *Component parsers can be reused in multiple situations and *Keyword parsers
89
* count on the *Component classes to do their job.
910
*/
10-
declare(strict_types=1);
1111

1212
namespace PhpMyAdmin\SqlParser;
1313

src/Components/AlterOperation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2+
23
/**
34
* Parses an alter operation.
45
*/
5-
declare(strict_types=1);
66

77
namespace PhpMyAdmin\SqlParser\Components;
88

src/Components/Array2d.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2+
23
/**
34
* `VALUES` keyword parser.
45
*/
5-
declare(strict_types=1);
66

77
namespace PhpMyAdmin\SqlParser\Components;
88

src/Components/ArrayObj.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2+
23
/**
34
* Parses an array.
45
*/
5-
declare(strict_types=1);
66

77
namespace PhpMyAdmin\SqlParser\Components;
88

src/Components/CaseExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2+
23
/**
34
* Parses a reference to a CASE expression.
45
*/
5-
declare(strict_types=1);
66

77
namespace PhpMyAdmin\SqlParser\Components;
88

src/Components/Condition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2+
23
/**
34
* `WHERE` keyword parser.
45
*/
5-
declare(strict_types=1);
66

77
namespace PhpMyAdmin\SqlParser\Components;
88

@@ -87,7 +87,7 @@ class Condition extends Component
8787
*/
8888
public function __construct($expr = null)
8989
{
90-
$this->expr = trim((string) $expr);
90+
$this->expr = trim($expr);
9191
}
9292

9393
/**

src/Components/CreateDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2+
23
/**
34
* Parses the create definition of a column or a key.
45
*
56
* Used for parsing `CREATE TABLE` statement.
67
*/
7-
declare(strict_types=1);
88

99
namespace PhpMyAdmin\SqlParser\Components;
1010

0 commit comments

Comments
 (0)