Skip to content

Commit fe39ff4

Browse files
committed
fixing ci
1 parent 29396e1 commit fe39ff4

File tree

8 files changed

+29
-7
lines changed

8 files changed

+29
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/generator/vendor/
22
/generator/build/
33
/generator/doc/doc-en/
4-
/generator/doc/entities/generated.ent
4+
/generator/doc/entities/generated.ent
5+
/composer.lock

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"squizlabs/php_codesniffer": "^3.2"
1414
},
1515
"scripts": {
16-
"phpstan": "phpstan analyse src -c phpstan.neon --level=7 --no-progress -vvv",
16+
"phpstan": "phpstan analyse lib -c phpstan.neon --level=7 --no-progress -vvv",
1717
"cs-fix": "phpcbf",
1818
"cs-check": "phpcs"
1919
},

lib/Exceptions/AbstractSafeException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Safe\Exceptions;
55

6-
76
abstract class AbstractSafeException extends \ErrorException implements SafeExceptionInterface
87
{
98
public static function createFromPhpError(): self

lib/Exceptions/CurlException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Safe\Exceptions;
55

6-
76
class CurlException extends AbstractSafeException
87
{
98
/**

lib/Exceptions/JsonException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Safe\Exceptions;
55

6-
76
class JsonException extends \Exception implements SafeExceptionInterface
87
{
98
public static function createFromPhpError(): self

lib/Exceptions/SafeExceptionInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
namespace Safe\Exceptions;
55

6-
76
interface SafeExceptionInterface extends \Throwable
87
{
98

10-
}
9+
}

phpcs.xml.dist

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Expressive Skeleton coding standard">
3+
<description>Expressive Skeleton coding standard</description>
4+
5+
<!-- display progress -->
6+
<arg value="p"/>
7+
<arg name="colors"/>
8+
9+
<!-- inherit rules from: -->
10+
<rule ref="PSR2"/>
11+
12+
<!-- Paths to check -->
13+
<file>lib</file>
14+
15+
<rule ref="Generic.Files.LineLength">
16+
<properties>
17+
<property name="lineLimit" value="300"/>
18+
<property name="absoluteLineLimit" value="500"/>
19+
</properties>
20+
</rule>
21+
</ruleset>

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
ignoreErrors:
3+
includes:
4+
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon

0 commit comments

Comments
 (0)