-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrade dependencies (enable Symfony 6 support), fix some tests #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| "datagrid", | ||
| "symfony4", | ||
| "symfony5", | ||
| "symfony6", | ||
| "bundle", | ||
| "data-table", | ||
| "pagination", | ||
|
|
@@ -24,23 +25,23 @@ | |
| "require": { | ||
| "php": ">=7.1", | ||
| "ext-pdo": "*", | ||
| "symfony/framework-bundle": "^4.0 || ^5.0", | ||
| "symfony/framework-bundle": "^4.0 || ^5.0 || ^6.0", | ||
| "symfony/orm-pack": "*", | ||
| "symfony/twig-bundle": "^4.0 || ^5.0", | ||
| "symfony/dependency-injection": "^4.0 || ^5.0", | ||
| "symfony/dependency-injection": "^4.0 || ^5.0 || ^6.0", | ||
| "symfony/config": "^4.0 || ^5.0", | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missed ^6 version here |
||
| "symfony/http-foundation": "^4.0 || ^5.0", | ||
| "symfony/http-kernel": "^4.0 || ^5.0", | ||
| "symfony/routing": "^4.0 || ^5.0", | ||
| "symfony/asset": "^4.0 || ^5.0", | ||
| "symfony/yaml": "^4.0 || ^5.0", | ||
| "symfony/templating": "^4.0 || ^5.0" | ||
| "symfony/http-foundation": "^4.0 || ^5.0 || ^6.0", | ||
| "symfony/http-kernel": "^4.0 || ^5.0 || ^6.0", | ||
| "symfony/routing": "^4.0 || ^5.0 || ^6.0", | ||
| "symfony/asset": "^4.0 || ^5.0 || ^6.0", | ||
| "symfony/yaml": "^4.0 || ^5.0 || ^6.0", | ||
| "symfony/templating": "^4.0 || ^5.0 || ^6.0" | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "^8.0", | ||
| "phpunit/php-code-coverage": "^7.0", | ||
| "phpunit/phpunit": "^8.0 || ^9.0", | ||
| "phpunit/php-code-coverage": "^7.0 || ^8.0 || ^9.0", | ||
| "symfony/maker-bundle": "*", | ||
| "symfony/translation": "^4.0 || ^5.0" | ||
| "symfony/translation": "^6.1" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
|
|
@@ -51,5 +52,8 @@ | |
| "psr-4": { | ||
| "Pfilsx\\tests\\": "tests" | ||
| } | ||
| }, | ||
| "scripts": { | ||
| "tests": "./vendor/bin/phpunit" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,7 @@ public final function setIdentifier($identifier) | |
| * @return boolean true on success or false on failure. | ||
| * The return value will be casted to boolean if non-boolean was returned. | ||
| */ | ||
| public final function offsetExists($offset) | ||
| public final function offsetExists(mixed $offset): bool | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mixed type-hint support added in PHP8, but in composer.json still PHP7.1 support |
||
| { | ||
| return $this->has($offset); | ||
| } | ||
|
|
@@ -59,7 +59,7 @@ public final function offsetExists($offset) | |
| * @param string $offset - The offset to retrieve. | ||
| * @return mixed Can return all value types. | ||
| */ | ||
| public final function offsetGet($offset) | ||
| public final function offsetGet(mixed $offset): mixed | ||
| { | ||
| return $this->get($offset); | ||
| } | ||
|
|
@@ -71,7 +71,7 @@ public final function offsetGet($offset) | |
| * @return void | ||
| * @throws DataGridException | ||
| */ | ||
| public final function offsetSet($offset, $value) | ||
| public final function offsetSet(mixed $offset, mixed $value): void | ||
| { | ||
| throw new DataGridException("Trying to set read-only property: $offset"); | ||
| } | ||
|
|
@@ -82,7 +82,7 @@ public final function offsetSet($offset, $value) | |
| * @return void | ||
| * @throws DataGridException | ||
| */ | ||
| public final function offsetUnset($offset) | ||
| public final function offsetUnset(mixed $offset): void | ||
| { | ||
| throw new DataGridException("Trying to unset read-only property: $offset"); | ||
| } | ||
|
|
@@ -127,4 +127,4 @@ public function __isset(string $attribute) | |
| { | ||
| return $this->has($attribute); | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,7 @@ protected function setUp(): void | |
| static::$kernel->getContainer()->get('router'), | ||
| static::$kernel->getContainer()->get('twig'), | ||
| $stack, | ||
| static::$kernel->getContainer()->get('translator') | ||
| // static::$kernel->getContainer()->get('translator') | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please no commented code its a bad practice |
||
| ); | ||
| $this->factory = new DataGridFactory($container, $this->configuration, $this->createMock(DependencyInjectionExtension::class)); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed ^6 version here