Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 37 additions & 37 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name": "assoconnect/php-date-bundle",
"description": "Symfony bundle for assoconnect/php-date library",
"type": "symfony-bundle",
"license": "MIT",
"autoload": {
"psr-4": {
"AssoConnect\\PHPDateBundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"AssoConnect\\PHPDateBundle\\Tests\\": "tests/"
}
},
"require-dev": {
"symfony/contracts": "^2.4",
"symfony/translation": "^7.0",
"assoconnect/php-quality-config": "^2",
"assoconnect/validator-bundle": "^2.19"
},
"require": {
"ext-intl": "*",
"php": "^8.3",
"symfony/framework-bundle": "^7.0",
"assoconnect/php-date": "^2.11",
"doctrine/dbal": "^2.10|^3.0",
"symfony/serializer": "^7.0",
"twig/twig": "^3",
"symfony/clock": "^7.3"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
{
"name": "assoconnect/php-date-bundle",
"description": "Symfony bundle for assoconnect/php-date library",
"type": "symfony-bundle",
"license": "MIT",
"autoload": {
"psr-4": {
"AssoConnect\\PHPDateBundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"AssoConnect\\PHPDateBundle\\Tests\\": "tests/"
}
},
"require-dev": {
"symfony/contracts": "^2.4",
"symfony/translation": "^7.0",
"assoconnect/php-quality-config": "^2",
"assoconnect/validator-bundle": "^2.39.2"
},
"require": {
"ext-intl": "*",
"php": "^8.3",
"symfony/framework-bundle": "^7.0",
"assoconnect/php-date": "^2.11",
"doctrine/dbal": "^2.10|^3.0",
"symfony/serializer": "^7.0",
"twig/twig": "^3",
"symfony/clock": "^7.3"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
7 changes: 7 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameters:
ignoreErrors:
-
message: '#^Return type \(AssoConnect\\PHPDate\\AbsoluteDate\) of method AssoConnect\\PHPDateBundle\\Normalizer\\AbsoluteDateNormalizer\:\:denormalize\(\) should be covariant with return type \(\(\$type is class\-string\<object\> \? object \: mixed\)\) of method Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface\:\:denormalize\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Normalizer/AbsoluteDateNormalizer.php
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ parameters:

includes:
- vendor/assoconnect/php-quality-config/phpstan.extension.neon
- phpstan-baseline.neon
1 change: 1 addition & 0 deletions src/Twig/Extension/AbsoluteDateExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function __construct(TranslatorInterface $translator)
$this->translator = $translator;
}

/** @return list<TwigFilter> */
public function getFilters(): array
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function getFactory(): FieldConstraintsSetProviderInterface
return new AbsoluteDateProvider();
}

public function getConstraintsForTypeProvider(): iterable
public static function getConstraintsForTypeProvider(): iterable
{
yield [
['type' => AbsoluteDateType::NAME],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function getFactory(): FieldConstraintsSetProviderInterface
return new DateTimeZoneProvider();
}

public function getConstraintsForTypeProvider(): iterable
public static function getConstraintsForTypeProvider(): iterable
{
yield [
['type' => DateTimeZoneType::NAME],
Expand Down
Loading