Compare commits
No commits in common. "57dcabc44fd0925c93b37b66bb96e6b29278683c" and "b230aa3fd2a79521ed69c17778fe457c5a201011" have entirely different histories.
57dcabc44f
...
b230aa3fd2
8 changed files with 16 additions and 1515 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -13,12 +13,3 @@
|
||||||
/phpunit.xml
|
/phpunit.xml
|
||||||
/.phpunit.cache/
|
/.phpunit.cache/
|
||||||
###< phpunit/phpunit ###
|
###< phpunit/phpunit ###
|
||||||
|
|
||||||
###> phpstan/phpstan ###
|
|
||||||
phpstan.neon
|
|
||||||
###< phpstan/phpstan ###
|
|
||||||
|
|
||||||
###> friendsofphp/php-cs-fixer ###
|
|
||||||
/.php-cs-fixer.php
|
|
||||||
/.php-cs-fixer.cache
|
|
||||||
###< friendsofphp/php-cs-fixer ###
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
$finder = (new PhpCsFixer\Finder())
|
|
||||||
->in(__DIR__)
|
|
||||||
->exclude('var')
|
|
||||||
// Auto-generated Symfony config files — not hand-written source, and the
|
|
||||||
// risky ruleset mangles prose like "@type" inside their doc comments.
|
|
||||||
->notPath('config/bundles.php')
|
|
||||||
->notPath('config/reference.php');
|
|
||||||
|
|
||||||
return (new PhpCsFixer\Config())
|
|
||||||
->setRiskyAllowed(true)
|
|
||||||
// PHP 8.4 may be newer than the fixer officially supports; allow it explicitly.
|
|
||||||
->setUnsupportedPhpVersionAllowed(true)
|
|
||||||
->setRules([
|
|
||||||
'@Symfony' => true,
|
|
||||||
'@Symfony:risky' => true,
|
|
||||||
])
|
|
||||||
->setFinder($finder)
|
|
||||||
->setCacheFile('var/.php-cs-fixer.cache');
|
|
||||||
|
|
@ -33,7 +33,6 @@
|
||||||
"config": {
|
"config": {
|
||||||
"allow-plugins": {
|
"allow-plugins": {
|
||||||
"php-http/discovery": true,
|
"php-http/discovery": true,
|
||||||
"phpstan/extension-installer": true,
|
|
||||||
"symfony/flex": true,
|
"symfony/flex": true,
|
||||||
"symfony/runtime": true
|
"symfony/runtime": true
|
||||||
},
|
},
|
||||||
|
|
@ -85,11 +84,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "^3.95",
|
|
||||||
"phpstan/extension-installer": "^1.4",
|
|
||||||
"phpstan/phpstan": "^2.2",
|
|
||||||
"phpstan/phpstan-doctrine": "^2.0",
|
|
||||||
"phpstan/phpstan-symfony": "^2.0",
|
|
||||||
"phpunit/phpunit": "^13.2",
|
"phpunit/phpunit": "^13.2",
|
||||||
"symfony/browser-kit": "8.1.*",
|
"symfony/browser-kit": "8.1.*",
|
||||||
"symfony/css-selector": "8.1.*"
|
"symfony/css-selector": "8.1.*"
|
||||||
|
|
|
||||||
1419
composer.lock
generated
1419
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,21 +0,0 @@
|
||||||
parameters:
|
|
||||||
level: 6
|
|
||||||
paths:
|
|
||||||
- bin/
|
|
||||||
- config/
|
|
||||||
- public/
|
|
||||||
- src/
|
|
||||||
- tests/
|
|
||||||
# phpstan-symfony: point at the compiled dev container so it understands service wiring.
|
|
||||||
# Requires the dev cache to be warm (php bin/console cache:warmup).
|
|
||||||
symfony:
|
|
||||||
containerXmlPath: var/cache/dev/App_KernelDevDebugContainer.xml
|
|
||||||
ignoreErrors:
|
|
||||||
# Framework-generated Kernel: getAllowedEnvs() is called via reflection by Symfony,
|
|
||||||
# so PHPStan can't see the usage. Scoped to this one file/message (not a global pattern).
|
|
||||||
-
|
|
||||||
message: '#Method App\\Kernel::getAllowedEnvs\(\) is unused\.#'
|
|
||||||
path: src/Kernel.php
|
|
||||||
# Recipe-generated test bootstrap — not our code to lint.
|
|
||||||
excludePaths:
|
|
||||||
- tests/bootstrap.php
|
|
||||||
19
shell.nix
19
shell.nix
|
|
@ -103,22 +103,6 @@ pkgs.mkShell {
|
||||||
$COMPOSE exec php php bin/phpunit "$@"
|
$COMPOSE exec php php bin/phpunit "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
dev-stan() {
|
|
||||||
# Warm the dev cache so phpstan-symfony can read the compiled container, then analyse.
|
|
||||||
$COMPOSE exec php php bin/console cache:warmup --quiet
|
|
||||||
$COMPOSE exec php vendor/bin/phpstan analyse --memory-limit=512M "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
dev-cs() {
|
|
||||||
# Dry-run code-style check (no changes). Use for CI / verification.
|
|
||||||
$COMPOSE exec php vendor/bin/php-cs-fixer check --diff "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
dev-cs-fix() {
|
|
||||||
# Apply code-style fixes in place.
|
|
||||||
$COMPOSE exec php vendor/bin/php-cs-fixer fix "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
# ===================
|
# ===================
|
||||||
# BUILD COMMANDS
|
# BUILD COMMANDS
|
||||||
# ===================
|
# ===================
|
||||||
|
|
@ -171,9 +155,6 @@ pkgs.mkShell {
|
||||||
echo " dev-console <cmd> Run Symfony console command"
|
echo " dev-console <cmd> Run Symfony console command"
|
||||||
echo " dev-composer <cmd> Run composer in the container"
|
echo " dev-composer <cmd> Run composer in the container"
|
||||||
echo " dev-test [args] Run PHPUnit (bin/phpunit)"
|
echo " dev-test [args] Run PHPUnit (bin/phpunit)"
|
||||||
echo " dev-stan [args] Run PHPStan static analysis"
|
|
||||||
echo " dev-cs [args] Check code style (dry-run)"
|
|
||||||
echo " dev-cs-fix [args] Apply code style fixes"
|
|
||||||
echo " base-build Build and push image"
|
echo " base-build Build and push image"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Services:"
|
echo "Services:"
|
||||||
|
|
|
||||||
24
symfony.lock
24
symfony.lock
|
|
@ -49,18 +49,6 @@
|
||||||
"migrations/.gitignore"
|
"migrations/.gitignore"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"friendsofphp/php-cs-fixer": {
|
|
||||||
"version": "3.95",
|
|
||||||
"recipe": {
|
|
||||||
"repo": "github.com/symfony/recipes",
|
|
||||||
"branch": "main",
|
|
||||||
"version": "3.39",
|
|
||||||
"ref": "97aaf9026490db73b86c23d49e5774bc89d2b232"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
".php-cs-fixer.dist.php"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"nelmio/cors-bundle": {
|
"nelmio/cors-bundle": {
|
||||||
"version": "2.6",
|
"version": "2.6",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
|
|
@ -73,18 +61,6 @@
|
||||||
"config/packages/nelmio_cors.yaml"
|
"config/packages/nelmio_cors.yaml"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"phpstan/phpstan": {
|
|
||||||
"version": "2.2",
|
|
||||||
"recipe": {
|
|
||||||
"repo": "github.com/symfony/recipes-contrib",
|
|
||||||
"branch": "main",
|
|
||||||
"version": "1.0",
|
|
||||||
"ref": "5e490cc197fb6bb1ae22e5abbc531ddc633b6767"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"phpstan.dist.neon"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"phpunit/phpunit": {
|
"phpunit/phpunit": {
|
||||||
"version": "13.2",
|
"version": "13.2",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
|
|
|
||||||
13
tests/SmokeTest.php
Normal file
13
tests/SmokeTest.php
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
final class SmokeTest extends TestCase
|
||||||
|
{
|
||||||
|
public function testPhpunitRuns(): void
|
||||||
|
{
|
||||||
|
self::assertTrue(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue