parameters: ignoreErrors: - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Option\\.$#' identifier: varTag.type count: 1 path: src/Parser/Entry.php - message: '#^Anonymous function should return GrahamCampbell\\ResultType\\Result\ but returns GrahamCampbell\\ResultType\\Result\\.$#' identifier: return.type count: 1 path: src/Parser/EntryParser.php - message: '#^Method Dotenv\\Parser\\EntryParser\:\:parse\(\) should return GrahamCampbell\\ResultType\\Result\ but returns GrahamCampbell\\ResultType\\Result\\.$#' identifier: return.type count: 1 path: src/Parser/EntryParser.php - message: '#^PHPDoc tag @var with type GrahamCampbell\\ResultType\\Result\ is not subtype of type GrahamCampbell\\ResultType\\Result\\|GrahamCampbell\\ResultType\\Result\\.$#' identifier: varTag.type count: 1 path: src/Parser/EntryParser.php - message: '#^Parameter \#2 \$callback of function array_reduce expects callable\(GrahamCampbell\\ResultType\\Result\\|GrahamCampbell\\ResultType\\Result\, string\)\: \(GrahamCampbell\\ResultType\\Result\\|GrahamCampbell\\ResultType\\Result\\), Closure\(GrahamCampbell\\ResultType\\Result, string\)\: GrahamCampbell\\ResultType\\Result\ given\.$#' identifier: argument.type count: 1 path: src/Parser/EntryParser.php - message: '#^Only booleans are allowed in a negated boolean, int\|false given\.$#' identifier: booleanNot.exprNotBoolean count: 1 path: src/Parser/Lexer.php - message: '#^Parameter \#1 \$pattern of function preg_match expects string, mixed given\.$#' identifier: argument.type count: 1 path: src/Parser/Lexer.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Some\\.$#' identifier: varTag.type count: 1 path: src/Repository/Adapter/ApacheAdapter.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Option\\.$#' identifier: varTag.type count: 1 path: src/Repository/Adapter/ApacheAdapter.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Some\\.$#' identifier: varTag.type count: 1 path: src/Repository/Adapter/ArrayAdapter.php - message: '#^Cannot cast mixed to string\.$#' identifier: cast.string count: 1 path: src/Repository/Adapter/EnvConstAdapter.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Some\\.$#' identifier: varTag.type count: 1 path: src/Repository/Adapter/EnvConstAdapter.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Some\\.$#' identifier: varTag.type count: 1 path: src/Repository/Adapter/PutenvAdapter.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Option\\.$#' identifier: varTag.type count: 1 path: src/Repository/Adapter/PutenvAdapter.php - message: '#^Cannot cast mixed to string\.$#' identifier: cast.string count: 1 path: src/Repository/Adapter/ServerConstAdapter.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Some\\.$#' identifier: varTag.type count: 1 path: src/Repository/Adapter/ServerConstAdapter.php - message: '#^Parameter \#1 \$callable of method PhpOption\\Some\\:\:flatMap\(\) expects callable\(Dotenv\\Repository\\Adapter\\AdapterInterface\|string\)\: PhpOption\\Option\, Closure\(mixed\)\: mixed given\.$#' identifier: argument.type count: 1 path: src/Repository/RepositoryBuilder.php - message: '#^Parameter \#1 \$callable of method PhpOption\\Some\\:\:flatMap\(\) expects callable\(Dotenv\\Repository\\Adapter\\ReaderInterface\|string\)\: PhpOption\\Option\, Closure\(mixed\)\: mixed given\.$#' identifier: argument.type count: 1 path: src/Repository/RepositoryBuilder.php - message: '#^Parameter \#1 \$callable of method PhpOption\\Some\\:\:flatMap\(\) expects callable\(Dotenv\\Repository\\Adapter\\WriterInterface\|string\)\: PhpOption\\Option\, Closure\(mixed\)\: mixed given\.$#' identifier: argument.type count: 1 path: src/Repository/RepositoryBuilder.php - message: '#^Parameter \#1 \$readers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\, array\ given\.$#' identifier: argument.type count: 2 path: src/Repository/RepositoryBuilder.php - message: '#^Parameter \#2 \$writers of class Dotenv\\Repository\\RepositoryBuilder constructor expects array\, array\ given\.$#' identifier: argument.type count: 2 path: src/Repository/RepositoryBuilder.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Option\\.$#' identifier: varTag.type count: 1 path: src/Store/File/Reader.php - message: '#^Method Dotenv\\Util\\Regex\:\:occurrences\(\) should return GrahamCampbell\\ResultType\\Result\ but returns GrahamCampbell\\ResultType\\Result\, string\>\.$#' identifier: return.type count: 1 path: src/Util/Regex.php - message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' identifier: function.alreadyNarrowedType count: 1 path: src/Util/Str.php - message: '#^Loose comparison via "\=\=" is not allowed\.$#' identifier: equal.notAllowed count: 1 path: src/Util/Str.php - message: '#^PHPDoc tag @var with type GrahamCampbell\\ResultType\\Result\ is not subtype of type GrahamCampbell\\ResultType\\Result\\.$#' identifier: varTag.type count: 2 path: src/Util/Str.php - message: '#^PHPDoc tag @var with type PhpOption\\Option\ is not subtype of type PhpOption\\Option\\|false\>\.$#' identifier: varTag.type count: 1 path: src/Util/Str.php