Skip to content

Commit 7573033

Browse files
committed
Issue dotkernel#53: Replace Psalm with PHPStan
Signed-off-by: horea <[email protected]>
1 parent 078e646 commit 7573033

10 files changed

+15
-16
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# dot-twigrenderer
22

3-
Dotkernel component providing twig extensions and customizations.
3+
Dotkernel component providing Twig extensions and customizations.
44

55
> dot-twigrenderer is a wrapper on top of [mezzio/mezzio-twigrenderer](https://github.com/mezzio/mezzio-twigrenderer)
66
77
## Documentation
88

9-
Documentation is available at: https://docs.dotkernel.org/dot-auth-social/.
9+
Documentation is available at: https://docs.dotkernel.org/dot-twigrenderer/.
1010

1111
## Badges
1212

1313
![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-twigrenderer)
14-
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-twigrenderer/3.5.0)
14+
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-twigrenderer/3.6.0)
1515

1616
[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-twigrenderer)](https://github.com/dotkernel/dot-twigrenderer/issues)
1717
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-twigrenderer)](https://github.com/dotkernel/dot-twigrenderer/network)

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "dotkernel/dot-twigrenderer",
33
"type": "library",
4-
"description": "Dotkernel component providing twig extensions and customization",
4+
"description": "Dotkernel component providing Twig extensions and customization",
55
"license": "MIT",
6-
"keywords": [
6+
"keywords": [
77
"twig",
88
"laminas",
99
"mezzio",
@@ -27,7 +27,7 @@
2727
"dotkernel/dot-authorization": "^3.4.1"
2828
},
2929
"require-dev": {
30-
"laminas/laminas-coding-standard": "^2.5",
30+
"laminas/laminas-coding-standard": "^3.0",
3131
"phpstan/phpstan": "^2.1",
3232
"phpstan/phpstan-phpunit": "^2.0",
3333
"phpunit/phpunit": "^10.5.7"

docs/book/index.md

-1
This file was deleted.

docs/book/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../README.md

docs/book/v3/examples/example-translation-ext.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The `local.php.dist` file in [frontend](https://github.com/dotkernel/frontend/bl
66

77
To apply the translations
88

9-
- the twig templates need either `{% trans 'translateText' %}` or `{{ translateText|trans }}`
9+
- the Twig templates need either `{% trans 'translateText' %}` or `{{ translateText|trans }}`
1010
- then the js file needs `translateText("translateText")`
1111

1212
**NOTE:**

docs/book/v3/overview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Overview
22

3-
Dotkernel component providing twig extensions and customizations.
3+
Dotkernel component providing Twig extensions and customizations.
44

55
> dot-twigrenderer is a wrapper on top of [mezzio/mezzio-twigrenderer](https://github.com/mezzio/mezzio-twigrenderer)
66
77
## Badges
88

99
![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-twigrenderer)
10-
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-twigrenderer/3.5.0)
10+
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-twigrenderer/3.6.0)
1111

1212
[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-twigrenderer)](https://github.com/dotkernel/dot-twigrenderer/issues)
1313
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-twigrenderer)](https://github.com/dotkernel/dot-twigrenderer/network)

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ nav:
2525
- "Navigation Extension": v3/examples/example-navigation-ext.md
2626
- "Translation Extension": v3/examples/example-translation-ext.md
2727
site_name: dot-twigrenderer
28-
site_description: "Dotkernel component providing twig extensions and customizations"
28+
site_description: "Dotkernel component providing Twig extensions and customizations"
2929
repo_url: "https://github.com/dotkernel/dot-twigrenderer"
3030
plugins:
3131
- search

test/Factory/AuthenticationExtensionFactoryTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Psr\Container\ContainerInterface;
1515
use Psr\Container\NotFoundExceptionInterface;
1616

17-
use function PHPUnit\Framework\assertSame;
1817
use function sprintf;
1918

2019
class AuthenticationExtensionFactoryTest extends TestCase
@@ -63,6 +62,6 @@ public function testWillInstantiateWithInterface(): void
6362

6463
$factory = (new AuthenticationExtensionFactory())($this->container);
6564

66-
assertSame(AuthenticationExtension::class, $factory::class);
65+
$this->assertSame(AuthenticationExtension::class, $factory::class);
6766
}
6867
}

test/Factory/AuthorizationExtensionFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ public function testWillInstantiateWithInterface(): void
6262

6363
$factory = (new AuthorizationExtensionFactory())($this->container);
6464

65-
self::assertSame(AuthorizationExtension::class, $factory::class);
65+
$this->assertSame(AuthorizationExtension::class, $factory::class);
6666
}
6767
}

test/Factory/FlashMessengerExtensionFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ public function testWillInstantiateWithInterface(): void
6363

6464
$factory = (new FlashMessengerExtensionFactory())($this->container);
6565

66-
self::assertSame(FlashMessengerExtension::class, $factory::class);
66+
$this->assertSame(FlashMessengerExtension::class, $factory::class);
6767
}
6868
}

test/Factory/NavigationExtensionFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ public function testWillInstantiateWithInterface(): void
6363

6464
$factory = (new NavigationExtensionFactory())($this->container);
6565

66-
self::assertSame(NavigationExtension::class, $factory::class);
66+
$this->assertSame(NavigationExtension::class, $factory::class);
6767
}
6868
}

0 commit comments

Comments
 (0)