Skip to content

Commit

Permalink
Update vimeo/psalm requirement from 4.8.1 to 4.30.0, remove Codecs (#53)
Browse files Browse the repository at this point in the history
* Update vimeo/psalm requirement from 4.8.1 to 4.30.0

Updates the requirements on [vimeo/psalm](https://github.com/vimeo/psalm) to permit the latest version.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](vimeo/psalm@4.8.1...4.30.0)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove codecs and encoder

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilario Pierbattista <ilario.pierbattista@facile.it>
  • Loading branch information
dependabot[bot] and ilario-pierbattista authored Apr 24, 2023
1 parent e065cf9 commit f56f63e
Show file tree
Hide file tree
Showing 67 changed files with 576 additions and 1,903 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Removed
- Support for PHP < 7.4
- `Codec` and `Encoder` interfaces. Removed `Codecs` entrypoint.

## [0.0.3] - 2022-01-16
### Added
- `SimplePathReporter` error reporter.
Expand Down
17 changes: 6 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,12 @@ run-php8.2:
docker-compose run --rm php82 bash -c "rm composer.lock || true; composer install --no-interaction; bash"
run: run-php7.4

.PHONY: psalm psalm-src psalm-tests psalm-update-baseline
psalm-src:
./vendor/bin/psalm src --no-cache

psalm-tests:
./vendor/bin/psalm tests --no-cache

psalm: psalm-src psalm-tests
.PHONY: psalm psalm-update-baseline
psalm:
./vendor/bin/psalm --no-cache

psalm-update-baseline:
./vendor/bin/psalm --update-baseline src tests
./vendor/bin/psalm --update-baseline


.PHONY: phpstan phpstan-update-baseline
Expand All @@ -49,6 +44,6 @@ cs-fix:
cs-check:
./vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run

ci: test cs-fix psalm type-assertions
ci: test phpstan psalm type-assertions cs-fix

ci-check: test cs-check psalm type-assertions
ci-check: test phpstan psalm type-assertions cs-check
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"phpunit/php-code-coverage": "^7.0",
"phpat/phpat": "^0.10",
"facile-it/facile-coding-standard": "^0.5.1",
"vimeo/psalm": "4.8.1",
"vimeo/psalm": "4.30.0",
"friendsofphp/php-cs-fixer": "^3.3",
"phpstan/phpstan": "^1.8"
},
Expand All @@ -22,11 +22,7 @@
"autoload": {
"psr-4": {
"Facile\\PhpCodec\\": "src/"
},
"files": [
"src/functions.php",
"src/Internal/utils.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down
17 changes: 1 addition & 16 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
parameters:
ignoreErrors:
-
message: "#^Template type U of method Facile\\\\PhpCodec\\\\Codecs\\:\\:mixed\\(\\) is not referenced in a parameter\\.$#"
count: 1
path: src/Codecs.php

-
message: "#^Template type RA of method Facile\\\\PhpCodec\\\\Decoder\\:\\:validate\\(\\) is not referenced in a parameter\\.$#"
count: 1
path: src/Decoder.php

-
message: "#^Template type CF of method Facile\\\\PhpCodec\\\\Decoders\\:\\:classFromArrayPropsDecoder\\(\\) is not referenced in a parameter\\.$#"
message: "#^Template type ClassFactory of method Facile\\\\PhpCodec\\\\Decoders\\:\\:classFromArrayPropsDecoder\\(\\) is not referenced in a parameter\\.$#"
count: 1
path: src/Decoders.php

Expand All @@ -20,11 +10,6 @@ parameters:
count: 1
path: src/Decoders.php

-
message: "#^Template type X of method Facile\\\\PhpCodec\\\\Internal\\\\Encode\\:\\:identity\\(\\) is not referenced in a parameter\\.$#"
count: 1
path: src/Internal/Encode.php

-
message: "#^Template type VP of method Facile\\\\PhpCodec\\\\Validation\\\\ListOfValidation\\:\\:reduceToIndexedSuccessOrAllFailures\\(\\) is not referenced in a parameter\\.$#"
count: 1
Expand Down
15 changes: 1 addition & 14 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69">
<file src="tests/unit/CodecsTest.php">
<MixedArgument occurrences="1"/>
<TooManyArguments occurrences="4"/>
</file>
<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
<file src="tests/unit/GeneratorUtils.php">
<TooManyArguments occurrences="1"/>
</file>
Expand All @@ -13,13 +9,4 @@
<code>Generators::oneOf(Generators::string(), Generators::float(), Generators::bool())</code>
</TooManyArguments>
</file>
<file src="tests/unit/Internal/Combinators/LiteralCodecTest.php">
<TooManyArguments occurrences="2"/>
</file>
<file src="tests/unit/Internal/Primitives/CallableDecoderTest.php">
<TooManyArguments occurrences="2"/>
</file>
<file src="tests/unit/Internal/Primitives/NullTypeTest.php">
<TooManyArguments occurrences="1"/>
</file>
</files>
1 change: 0 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<psalm
errorLevel="1"
resolveFromConfigFile="true"
totallyTyped="true"
addParamDefaultToDocblockType="true"
findUnusedCode="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
17 changes: 0 additions & 17 deletions src/Codec.php

This file was deleted.

Loading

0 comments on commit f56f63e

Please sign in to comment.