Skip to content

Commit 264dce5

Browse files
Cleanup
1 parent bb78c37 commit 264dce5

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

phpstan.src.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ parameters:
33
ignoreErrors:
44
- '#Only booleans are allowed in a negated boolean, int\|false given.#'
55
- '#Method Dotenv\\Util\\Regex::split\(\) should return GrahamCampbell\\ResultType\\Result\<array\<string\>, string\> but returns GrahamCampbell\\ResultType\\Result\<array\<int, bool\|string\>, string\>.#'
6+
- '#Anonymous function should return GrahamCampbell\\ResultType\\Result\<array\{mixed, mixed\}, string\> but returns GrahamCampbell\\ResultType\\Result\<array\{Dotenv\\Parser\\Value, mixed\}, string\>.#'
7+
- '#Anonymous function should return GrahamCampbell\\ResultType\\Result\<non\-empty\-array, string\> but returns GrahamCampbell\\ResultType\\Result\<non\-empty\-array\<int, Dotenv\\Parser\\Entry\>, string\>.#'
8+
- '#Parameter \#1 \$readers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\<Dotenv\\Repository\\Adapter\\ReaderInterface\>, array\<Dotenv\\Repository\\Adapter\\ReaderInterface\|S\> given\.#'
9+
- '#Parameter \#2 \$writers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\<Dotenv\\Repository\\Adapter\\WriterInterface\>, array\<Dotenv\\Repository\\Adapter\\WriterInterface\|S\> given\.#'

src/Parser/Lexer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ final class Lexer
88
{
99
/**
1010
* The regex for each type of token.
11-
*
12-
* @var string
1311
*/
1412
private const PATTERNS = [
1513
'[\r\n]{1,1000}', '[^\S\r\n]{1,1000}', '\\\\', '\'', '"', '\\#', '\\$', '([^(\s\\\\\'"\\#\\$)]|\\(|\\)){1,1000}',
@@ -45,8 +43,6 @@ public static function lex(string $content)
4543
$regex = '(('.\implode(')|(', self::PATTERNS).'))A';
4644
}
4745

48-
$tokens = [];
49-
5046
$offset = 0;
5147

5248
while (isset($content[$offset])) {

src/Repository/RepositoryBuilder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ final class RepositoryBuilder
2121
{
2222
/**
2323
* The set of default adapters.
24-
*
25-
* @var string[]
2624
*/
2725
private const DEFAULT_ADAPTERS = [
2826
ServerConstAdapter::class,

src/Store/StoreBuilder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ final class StoreBuilder
1010
{
1111
/**
1212
* The of default name.
13-
*
14-
* @var string[]
1513
*/
1614
private const DEFAULT_NAME = '.env';
1715

0 commit comments

Comments
 (0)