Skip to content

Commit 01334b9

Browse files
authored
Merge pull request #44 from koriym/psalm
Soothe psalm
2 parents 85fc33d + d936820 commit 01334b9

34 files changed

+20
-131
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"phpmd/phpmd": "^2.6",
3030
"rector/rector": "^0.15.3",
3131
"ray/rector-ray": "^1.0",
32-
"doctrine/coding-standard": "^11.1"
32+
"doctrine/coding-standard": "^11.1",
33+
"vimeo/psalm": "^5.4"
3334
},
3435
"autoload":{
3536
"psr-4":{
@@ -50,7 +51,8 @@
5051
"tests": ["@cs", "phpstan analyse -l max src tests -c phpstan.neon --no-progress", "@test"],
5152
"coverage": ["php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage"],
5253
"cs": ["php-cs-fixer fix -v --dry-run", "phpcs --standard=phpcs.xml src;"],
53-
"cs-fix": ["phpcbf src tests"]
54+
"cs-fix": ["phpcbf src tests"],
55+
"sa": "psalm"
5456
},
5557
"config": {
5658
"allow-plugins": {

psalm.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="4"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns="https://getpsalm.org/schema/config"
6+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
7+
>
8+
<projectFiles>
9+
<directory name="src" />
10+
<ignoreFiles>
11+
<directory name="vendor" />
12+
</ignoreFiles>
13+
</projectFiles>
14+
</psalm>

src/Annotation/TwigDebug.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule\Annotation;
106

117
use Attribute;

src/Annotation/TwigErrorPath.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule\Annotation;
106

117
use Attribute;

src/Annotation/TwigLoader.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule\Annotation;
106

117
use Attribute;

src/Annotation/TwigOptions.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule\Annotation;
106

117
use Attribute;

src/Annotation/TwigPaths.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule\Annotation;
106

117
use Attribute;

src/Annotation/TwigRedirectPath.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule\Annotation;
106

117
use Attribute;

src/AppPathProvider.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule;
106

117
use BEAR\AppMeta\AbstractAppMeta;
128
use Ray\Di\ProviderInterface;
139

10+
/** @implements ProviderInterface<array<string>> */
1411
class AppPathProvider implements ProviderInterface
1512
{
1613
public function __construct(

src/ErrorPagerRenderer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* This file is part of the Madapaja.TwigModule package.
7-
*/
8-
95
namespace Madapaja\TwigModule;
106

117
use BEAR\Resource\RenderInterface;

0 commit comments

Comments
 (0)