Skip to content

Commit 45eb613

Browse files
committed
Initial commit of fork
1 parent 15aa983 commit 45eb613

24 files changed

+81
-79
lines changed

LICENSE

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
MIT License
1+
The MIT License
2+
---------------
23

3-
Copyright (c) 2022 Andrew Riddlestone
4+
Copyright (c) 2023 Oleg Zhulnev (https://github.com/sidz)
45

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
6+
Permission is hereby granted, free of charge, to any person
7+
obtaining a copy of this software and associated documentation
8+
files (the "Software"), to deal in the Software without
9+
restriction, including without limitation the rights to use,
10+
copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the
12+
Software is furnished to do so, subject to the following
13+
conditions:
1114

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
1417

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ PHPStan extensions to help test CakePHP 2 projects with PHPStan
1111

1212
Installation is best done through composer:
1313
```shell
14-
composer require --dev ariddlestone/phpstan-cakephp2
14+
composer require --dev sidz/phpstan-cakephp2
1515
```
1616

1717
You will need to make sure the extension is included in your phpstan config:
1818
```yaml
1919
# phpstan.neon
2020
includes:
21-
- vendor/ariddlestone/phpstan-cakephp2/extension.neon
21+
- vendor/sidz/phpstan-cakephp2/extension.neon
2222
```
2323
2424
If you have behavior classes in odd locations (perhaps in a vendor directory) you will need to add those locations to

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "ariddlestone/phpstan-cakephp2",
2+
"name": "sidz/phpstan-cakephp2",
33
"description": "An extension to help test CakePHP 2 projects with PHPStan",
44
"type": "library",
55
"license": "MIT",
66
"authors": [
77
{
8-
"name": "Andrew Riddlestone",
9-
"email": "andrew.riddlestone@gmail.com"
8+
"name": "Oleg Zhulnev",
9+
"email": "plbsid@gmail.com"
1010
}
1111
],
1212
"require": {
@@ -21,12 +21,12 @@
2121
},
2222
"autoload": {
2323
"psr-4": {
24-
"ARiddlestone\\PHPStanCakePHP2\\": "src/"
24+
"PHPStanCakePHP2\\": "src/"
2525
}
2626
},
2727
"autoload-dev": {
2828
"psr-4": {
29-
"ARiddlestone\\PHPStanCakePHP2\\Test\\": "tests/"
29+
"PHPStanCakePHP2\\Test\\": "tests/"
3030
},
3131
"classmap": [
3232
"tests/Feature/classes",
@@ -42,7 +42,6 @@
4242
]
4343
},
4444
"scripts": {
45-
"extract-phpstan": "phar extract -f vendor/phpstan/phpstan/phpstan.phar phpstan",
4645
"phpinsights": "phpinsights analyse --no-interaction --ansi --config-path=phpinsights.php --summary src",
4746
"phpinsights-github": "phpinsights analyse --no-interaction --ansi --config-path=phpinsights.php --format=github-action src",
4847
"phpstan": "phpstan",

extension.neon

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ parameters:
1111
stubFiles:
1212
- stubs/Utility.php
1313
services:
14-
- class: ARiddlestone\PHPStanCakePHP2\ClassComponentsExtension
14+
- class: PHPStanCakePHP2\ClassComponentsExtension
1515
tags:
1616
- phpstan.broker.propertiesClassReflectionExtension
17-
- class: ARiddlestone\PHPStanCakePHP2\ClassModelsExtension
17+
- class: PHPStanCakePHP2\ClassModelsExtension
1818
tags:
1919
- phpstan.broker.propertiesClassReflectionExtension
20-
- class: ARiddlestone\PHPStanCakePHP2\ClassRegistryInitExtension
20+
- class: PHPStanCakePHP2\ClassRegistryInitExtension
2121
tags:
2222
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
23-
- class: ARiddlestone\PHPStanCakePHP2\ClassTasksExtension
23+
- class: PHPStanCakePHP2\ClassTasksExtension
2424
tags:
2525
- phpstan.broker.propertiesClassReflectionExtension
26-
- class: ARiddlestone\PHPStanCakePHP2\ModelBehaviorsExtension
26+
- class: PHPStanCakePHP2\ModelBehaviorsExtension
2727
arguments:
2828
behaviorPaths: %ModelBehaviorsExtension.behaviorPaths%
2929
tags:
3030
- phpstan.broker.methodsClassReflectionExtension
31-
- class: ARiddlestone\PHPStanCakePHP2\Service\SchemaService
31+
- class: PHPStanCakePHP2\Service\SchemaService
3232
arguments:
3333
schemaPaths: %SchemaService.schemaPaths%
34-
- class: ARiddlestone\PHPStanCakePHP2\LoadComponentOnFlyMethodReturnTypeExtension
34+
- class: PHPStanCakePHP2\LoadComponentOnFlyMethodReturnTypeExtension
3535
tags:
3636
- phpstan.broker.dynamicMethodReturnTypeExtension
3737
parametersSchema:

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
cacheResultFile=".phpunit.cache/test-results"
66
executionOrder="depends,defects"

src/ClassComponentsExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ARiddlestone\PHPStanCakePHP2;
5+
namespace PHPStanCakePHP2;
66

77
final class ClassComponentsExtension extends ClassPropertiesExtension
88
{

src/ClassModelsExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ARiddlestone\PHPStanCakePHP2;
5+
namespace PHPStanCakePHP2;
66

77
/**
88
* Adds {@link Model}s as properties to {@link Shell}s.

src/ClassPropertiesExtension.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace ARiddlestone\PHPStanCakePHP2;
5+
namespace PHPStanCakePHP2;
66

77
use PHPStan\Reflection\ClassReflection;
88
use PHPStan\Reflection\PropertiesClassReflectionExtension;
99
use PHPStan\Reflection\PropertyReflection;
1010
use PHPStan\Reflection\ReflectionProvider;
1111

12-
abstract class ClassPropertiesExtension implements
13-
PropertiesClassReflectionExtension
12+
abstract class ClassPropertiesExtension implements PropertiesClassReflectionExtension
1413
{
1514
private ReflectionProvider $reflectionProvider;
1615

src/ClassReflectionFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ARiddlestone\PHPStanCakePHP2;
5+
namespace PHPStanCakePHP2;
66

77
use Exception;
88
use PHPStan\Reflection\ClassReflection;

src/ClassRegistryInitExtension.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
22

3-
namespace ARiddlestone\PHPStanCakePHP2;
3+
declare(strict_types=1);
44

5-
use ARiddlestone\PHPStanCakePHP2\Service\SchemaService;
5+
namespace PHPStanCakePHP2;
6+
7+
use PHPStanCakePHP2\Service\SchemaService;
68
use Inflector;
79
use PhpParser\ConstExprEvaluator;
810
use PhpParser\Node\Expr\StaticCall;

0 commit comments

Comments
 (0)