Skip to content
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

Fix phpstan baseline, eslint config and caching tests #6493

Merged
merged 8 commits into from Mar 2, 2022

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Mar 2, 2022

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #
Related issues/PRs #
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Fix phpstan baseline.

Why?

Fix baseline.

{
"props": "never",
"children": "never",
"propElementValues": "always"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new but it is as stated in the following issue / comment jsx-eslint/eslint-plugin-react#3228 (comment) not supported by all parser so we need to define it to always so our parsers do not have problems with it.

@alexander-schranz alexander-schranz changed the title Fix phpstan baseline Fix phpstan baseline and eslint config Mar 2, 2022
@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Mar 2, 2022
@wachterjohannes wachterjohannes enabled auto-merge (squash) March 2, 2022 15:24
@alexander-schranz alexander-schranz changed the title Fix phpstan baseline and eslint config Fix phpstan baseline, eslint config and cachingtests Mar 2, 2022
@@ -38,6 +38,7 @@ public function testFirstRequestIsACacheMiss()
$cacheKernel = new AppCache(self::bootKernel());
$cookieJar = new CookieJar();
$client = new KernelBrowser($cacheKernel, [], null, $cookieJar);
$client->disableReboot();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is now required else other tests are running into an issue about a not booted kernel

@alexander-schranz alexander-schranz changed the title Fix phpstan baseline, eslint config and cachingtests Fix phpstan baseline, eslint config and caching tests Mar 2, 2022
Comment on lines +24 to +27
protected static function getKernelClass(): string
{
return S3Kernel::class;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required because of: symfony/symfony#45414

We still need to define protected static $class = S3Kernel::class; for prefer lowest tests.

@wachterjohannes wachterjohannes merged commit 4d8d2f6 into sulu:2.3 Mar 2, 2022
@alexander-schranz alexander-schranz deleted the bugfix/phpstan-baseline branch March 2, 2022 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants