Skip to content

Commit

Permalink
Upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 20, 2024
1 parent d31de17 commit a59a137
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 20 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"require": {
"php": "^7.2.5 || ^8.0",
"ext-pcre": "*",
"graham-campbell/result-type": "^1.1.2",
"phpoption/phpoption": "^1.9.2",
"graham-campbell/result-type": "^1.1.3",
"phpoption/phpoption": "^1.9.3",
"symfony/polyfill-ctype": "^1.24",
"symfony/polyfill-mbstring": "^1.24",
"symfony/polyfill-php80": "^1.24"
Expand Down
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
ignoreErrors:
-
message: "#^Anonymous function should return GrahamCampbell\\\\ResultType\\\\Result\\<array\\{mixed, mixed\\}, string\\> but returns GrahamCampbell\\\\ResultType\\\\Result\\<array\\{Dotenv\\\\Parser\\\\Value, mixed\\}, string\\>\\.$#"
message: "#^Parameter \\#2 \\$callback of function array_reduce expects callable\\(GrahamCampbell\\\\ResultType\\\\Result\\<array\\{Dotenv\\\\Parser\\\\Value, int\\}, mixed\\>\\|GrahamCampbell\\\\ResultType\\\\Result\\<array\\{mixed, int\\}, string\\>, string\\)\\: \\(GrahamCampbell\\\\ResultType\\\\Result\\<array\\{Dotenv\\\\Parser\\\\Value, int\\}, mixed\\>\\|GrahamCampbell\\\\ResultType\\\\Result\\<array\\{mixed, int\\}, string\\>\\), Closure\\(GrahamCampbell\\\\ResultType\\\\Result, string\\)\\: GrahamCampbell\\\\ResultType\\\\Result\\<array\\{Dotenv\\\\Parser\\\\Value, int\\}, string\\> given\\.$#"
count: 1
path: src/Parser/EntryParser.php

Expand Down
32 changes: 20 additions & 12 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
<files psalm-version="5.25.0@01a8eb06b9e9cc6cfb6a320bf9fb14331919d505">
<file src="src/Repository/Adapter/EnvConstAdapter.php">
<RedundantConditionGivenDocblockType>
<code>\is_scalar($value)</code>
<code><![CDATA[\is_scalar($value)]]></code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/Repository/RepositoryBuilder.php">
<InvalidStringClass>
<code>$adapter::create()</code>
<code>$reader::create()</code>
<code>$writer::create()</code>
<code><![CDATA[$adapter::create()]]></code>
<code><![CDATA[$reader::create()]]></code>
<code><![CDATA[$writer::create()]]></code>
</InvalidStringClass>
<MissingClosureReturnType>
<code>static function ($adapter) {</code>
<code>static function ($reader) {</code>
<code>static function ($writer) {</code>
<code><![CDATA[static function ($adapter) {]]></code>
<code><![CDATA[static function ($reader) {]]></code>
<code><![CDATA[static function ($writer) {]]></code>
</MissingClosureReturnType>
</file>
<file src="src/Util/Regex.php">
<ArgumentTypeCoercion>
<code>$pattern</code>
<code>$pattern</code>
<code>$pattern</code>
<code>$pattern</code>
<code><![CDATA[$pattern]]></code>
<code><![CDATA[$pattern]]></code>
<code><![CDATA[$pattern]]></code>
<code><![CDATA[$pattern]]></code>
</ArgumentTypeCoercion>
<InvalidReturnStatement>
<code><![CDATA[self::pregAndWrap(static function (string $subject) use ($pattern) {
return (int) @\preg_match_all($pattern, $subject);
}, $subject)]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[\GrahamCampbell\ResultType\Result<int,string>]]></code>
</InvalidReturnType>
</file>
</files>
2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
findUnusedBaselineEntry="true"
findUnusedCode="false"
>
<projectFiles>
<directory name="src" />
Expand Down
8 changes: 4 additions & 4 deletions vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"require": {
"php": "^8.3",
"phpstan/phpstan": "1.10.41",
"phpstan/extension-installer": "1.3.1",
"phpstan/phpstan-deprecation-rules": "1.1.4",
"phpstan/phpstan-strict-rules": "1.5.2",
"phpstan/phpstan": "1.11.7",
"phpstan/extension-installer": "1.4.1",
"phpstan/phpstan-deprecation-rules": "1.2.0",
"phpstan/phpstan-strict-rules": "1.6.0",
"thecodingmachine/phpstan-strict-rules": "1.0.0"
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/psalm/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"php": "^8.3",
"psalm/phar": "5.15.0"
"psalm/phar": "5.25.0"
},
"config": {
"preferred-install": "dist"
Expand Down

0 comments on commit a59a137

Please sign in to comment.