From 8370ba60dcc580404b5b3be269d11f03e5e0bc90 Mon Sep 17 00:00:00 2001 From: Rogerio Lino Date: Mon, 23 Mar 2026 18:12:43 -0300 Subject: [PATCH 1/3] chore: upgrade dev tools (phpstan 2, phpunit 11, phpcs 4) - Bump phpstan/phpstan to ^2.1 - Add phpstan/phpdoc-parser ^2.3.2 - Bump phpunit/phpunit to ^11.5.55 - Bump slevomat/coding-standard to ^8.28 - Add squizlabs/php_codesniffer ^4.0 - Fix phpunit.xml.dist: remove deprecated convertDeprecationsToExceptions attribute and processUncoveredFiles; replace coverage with source for PHPUnit 11 compatibility Co-Authored-By: Claude Sonnet 4.6 --- composer.json | 8 +++++--- phpunit.xml.dist | 5 ++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 25781b7..9ae4fbd 100644 --- a/composer.json +++ b/composer.json @@ -18,9 +18,11 @@ "symfony/security-core": "7.4.*" }, "require-dev": { - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.5", - "slevomat/coding-standard": "~8.0" + "phpstan/phpstan": "^2.1", + "phpstan/phpdoc-parser": "^2.3.2", + "phpunit/phpunit": "^11.5.55", + "slevomat/coding-standard": "^8.28", + "squizlabs/php_codesniffer": "^4.0" }, "extra": { "branch-alias": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8a916fc..659f89d 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,7 +5,6 @@ xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false" colors="true" - convertDeprecationsToExceptions="false" > @@ -20,11 +19,11 @@ - + src - + From 9a088a2a16e9fa265f530256081c4204e4a7179e Mon Sep 17 00:00:00 2001 From: Rogerio Lino Date: Mon, 23 Mar 2026 18:44:38 -0300 Subject: [PATCH 2/3] config files --- .gitignore | 7 +++++-- phpunit.xml.dist => phpunit.dist.xml | 19 +++++++++++++++---- src/Entity/UsuarioInterface.php | 5 +++-- 3 files changed, 23 insertions(+), 8 deletions(-) rename phpunit.xml.dist => phpunit.dist.xml (57%) diff --git a/.gitignore b/.gitignore index 3a02cfb..1fd3739 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ vendor/ composer.lock -.phpcs-cache -.phpunit.result.cache +/.phpcs-cache +/phpcs.xml +phpstan.neon +/phpunit.xml +/.phpunit.cache/ diff --git a/phpunit.xml.dist b/phpunit.dist.xml similarity index 57% rename from phpunit.xml.dist rename to phpunit.dist.xml index 659f89d..f42e39b 100644 --- a/phpunit.xml.dist +++ b/phpunit.dist.xml @@ -3,13 +3,16 @@ - @@ -19,10 +22,18 @@ - + - src + src + + + trigger_deprecation + diff --git a/src/Entity/UsuarioInterface.php b/src/Entity/UsuarioInterface.php index 7b85d52..70eb367 100644 --- a/src/Entity/UsuarioInterface.php +++ b/src/Entity/UsuarioInterface.php @@ -15,14 +15,15 @@ use Doctrine\Common\Collections\Collection; use JsonSerializable; +use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; /** - * Usuario + * UsuarioInterface * * @author Rogerio Lino */ -interface UsuarioInterface extends PasswordAuthenticatedUserInterface, JsonSerializable +interface UsuarioInterface extends UserInterface, PasswordAuthenticatedUserInterface, JsonSerializable { public function getId(): ?int; public function setId(?int $id): static; From d2fe6271cce8c44c04616b40e83eb7e166b6a22a Mon Sep 17 00:00:00 2001 From: Rogerio Lino Date: Tue, 24 Mar 2026 09:13:50 -0300 Subject: [PATCH 3/3] fix bootstrap.php --- phpunit.dist.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/phpunit.dist.xml b/phpunit.dist.xml index f42e39b..0dffd84 100644 --- a/phpunit.dist.xml +++ b/phpunit.dist.xml @@ -7,7 +7,6 @@ failOnDeprecation="true" failOnNotice="true" failOnWarning="true" - bootstrap="tests/bootstrap.php" cacheDirectory=".phpunit.cache" >