Skip to content

Commit b49e6c4

Browse files
Merge branch '4.2'
2 parents ef736ad + da64796 commit b49e6c4

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"require-dev": {
2828
"ext-filter": "*",
2929
"bamarni/composer-bin-plugin": "^1.4.1",
30-
"phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.4"
30+
"phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1"
3131
},
3232
"autoload": {
3333
"psr-4": {

phpstan.src.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parameters:
22
level: max
33
ignoreErrors:
4-
- '#Unable to resolve the template type#'
54
- '#Anonymous function should have native return typehint ".+".#'
65
- '#Only booleans are allowed in a negated boolean, int\|false given.#'
6+
- '#Method Dotenv\\Util\\Regex::split\(\) should return GrahamCampbell\\ResultType\\Result\<array\<string\>, string\> but returns GrahamCampbell\\ResultType\\Result\<array\<int, bool\|string\>, string\>.#'

psalm-baseline.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="4.2.1@ea9cb72143b77e7520c52fa37290bd8d8bc88fd9">
3-
<file src="src/Parser/EntryParser.php">
4-
<MissingClosureReturnType occurrences="1">
5-
<code>static function (array $data) {</code>
6-
</MissingClosureReturnType>
7-
</file>
2+
<files psalm-version="4.3.1@2feba22a005a18bf31d4c7b9bdb9252c73897476">
83
<file src="src/Repository/RepositoryBuilder.php">
4+
<InvalidArgument occurrences="1">
5+
<code>flatMap</code>
6+
</InvalidArgument>
97
<InvalidStringClass occurrences="3">
108
<code>$adapter::create()</code>
119
<code>$reader::create()</code>

src/Parser/Parser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function parse(string $content)
4040
*/
4141
private static function process(array $entries)
4242
{
43+
/** @var \GrahamCampbell\ResultType\Result<\Dotenv\Parser\Entry[],string> */
4344
return \array_reduce($entries, static function (Result $result, string $raw) {
4445
return $result->flatMap(static function (array $entries) use ($raw) {
4546
return EntryParser::parse($raw)->map(static function (Entry $entry) use ($entries) {

vendor-bin/phpstan/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"require": {
3-
"phpstan/phpstan": "0.12.58",
4-
"phpstan/extension-installer": "1.0.5",
5-
"phpstan/phpstan-deprecation-rules": "0.12.5",
6-
"phpstan/phpstan-phpunit": "0.12.16",
7-
"phpstan/phpstan-strict-rules": "0.12.5",
3+
"phpstan/phpstan": "0.12.68",
4+
"phpstan/extension-installer": "1.1.0",
5+
"phpstan/phpstan-deprecation-rules": "0.12.6",
6+
"phpstan/phpstan-phpunit": "0.12.17",
7+
"phpstan/phpstan-strict-rules": "0.12.9",
88
"thecodingmachine/phpstan-strict-rules": "0.12.1"
99
},
1010
"config": {

vendor-bin/psalm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"psalm/phar": "4.2.1"
3+
"psalm/phar": "4.3.1"
44
},
55
"config": {
66
"preferred-install": "dist"

0 commit comments

Comments
 (0)