Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
vendor/
composer.lock
.phpcs-cache
.phpunit.result.cache
/.phpcs-cache
/phpcs.xml
phpstan.neon
/phpunit.xml
/.phpunit.cache/
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
21 changes: 15 additions & 6 deletions phpunit.xml.dist → phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
convertDeprecationsToExceptions="false"
failOnDeprecation="true"
failOnNotice="true"
failOnWarning="true"
cacheDirectory=".phpunit.cache"
>
<php>
<ini name="display_errors" value="1" />
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
</php>

Expand All @@ -20,11 +21,19 @@
</testsuite>
</testsuites>

<coverage processUncoveredFiles="true">
<source ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
restrictNotices="true"
restrictWarnings="true"
>
<include>
<directory suffix=".php">src</directory>
<directory>src</directory>
</include>
</coverage>

<deprecationTrigger>
<function>trigger_deprecation</function>
</deprecationTrigger>
</source>

<extensions>
</extensions>
Expand Down
5 changes: 3 additions & 2 deletions src/Entity/UsuarioInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <rogeriolino@gmail.com>
*/
interface UsuarioInterface extends PasswordAuthenticatedUserInterface, JsonSerializable
interface UsuarioInterface extends UserInterface, PasswordAuthenticatedUserInterface, JsonSerializable
{
public function getId(): ?int;
public function setId(?int $id): static;
Expand Down
Loading