Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 12, 2021
1 parent bb78c37 commit 264dce5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions phpstan.src.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ parameters:
ignoreErrors:
- '#Only booleans are allowed in a negated boolean, int\|false given.#'
- '#Method Dotenv\\Util\\Regex::split\(\) should return GrahamCampbell\\ResultType\\Result\<array\<string\>, string\> but returns GrahamCampbell\\ResultType\\Result\<array\<int, bool\|string\>, string\>.#'
- '#Anonymous function should return GrahamCampbell\\ResultType\\Result\<array\{mixed, mixed\}, string\> but returns GrahamCampbell\\ResultType\\Result\<array\{Dotenv\\Parser\\Value, mixed\}, string\>.#'
- '#Anonymous function should return GrahamCampbell\\ResultType\\Result\<non\-empty\-array, string\> but returns GrahamCampbell\\ResultType\\Result\<non\-empty\-array\<int, Dotenv\\Parser\\Entry\>, string\>.#'
- '#Parameter \#1 \$readers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\<Dotenv\\Repository\\Adapter\\ReaderInterface\>, array\<Dotenv\\Repository\\Adapter\\ReaderInterface\|S\> given\.#'
- '#Parameter \#2 \$writers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\<Dotenv\\Repository\\Adapter\\WriterInterface\>, array\<Dotenv\\Repository\\Adapter\\WriterInterface\|S\> given\.#'
4 changes: 0 additions & 4 deletions src/Parser/Lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ final class Lexer
{
/**
* The regex for each type of token.
*
* @var string
*/
private const PATTERNS = [
'[\r\n]{1,1000}', '[^\S\r\n]{1,1000}', '\\\\', '\'', '"', '\\#', '\\$', '([^(\s\\\\\'"\\#\\$)]|\\(|\\)){1,1000}',
Expand Down Expand Up @@ -45,8 +43,6 @@ public static function lex(string $content)
$regex = '(('.\implode(')|(', self::PATTERNS).'))A';
}

$tokens = [];

$offset = 0;

while (isset($content[$offset])) {
Expand Down
2 changes: 0 additions & 2 deletions src/Repository/RepositoryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ final class RepositoryBuilder
{
/**
* The set of default adapters.
*
* @var string[]
*/
private const DEFAULT_ADAPTERS = [
ServerConstAdapter::class,
Expand Down
2 changes: 0 additions & 2 deletions src/Store/StoreBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ final class StoreBuilder
{
/**
* The of default name.
*
* @var string[]
*/
private const DEFAULT_NAME = '.env';

Expand Down

0 comments on commit 264dce5

Please sign in to comment.