Skip to content

Commit 79606f4

Browse files
authored
Merge pull request #73 from maximehuran/feature/few-changes
Change docker composer and reduce PHP Stan level
2 parents 73fd672 + 41e5d85 commit 79606f4

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export COMPOSE_PROJECT_NAME=cms-page
99
export MIGRATIONS_NAMESPACE=MonsieurBiz\\SyliusCmsPagePlugin\\Migrations
1010
export USER_UID=$(shell id -u)
1111
PLUGIN_NAME=sylius-${COMPOSE_PROJECT_NAME}-plugin
12-
COMPOSE=docker-compose
12+
COMPOSE=docker compose
1313
YARN=yarn
1414

1515
###

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: max
2+
level: 8
33
paths:
44
- %rootDir%/src/
55

src/Repository/PageRepository.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function existsOneByChannelAndSlug(ChannelInterface $channel, ?string $lo
4040
;
4141
}
4242

43-
/** @phpstan-ignore-next-line */
4443
$count = (int) $queryBuilder
4544
->getQuery()
4645
->getSingleScalarResult()
@@ -56,7 +55,6 @@ public function existsOneEnabledByChannelAndSlug(ChannelInterface $channel, ?str
5655
->andWhere('p.enabled = true')
5756
;
5857

59-
/** @phpstan-ignore-next-line */
6058
$count = (int) $queryBuilder
6159
->getQuery()
6260
->getSingleScalarResult()
@@ -70,7 +68,6 @@ public function existsOneEnabledByChannelAndSlug(ChannelInterface $channel, ?str
7068
*/
7169
public function findOneEnabledBySlugAndChannelCode(string $slug, string $localeCode, string $channelCode): ?PageInterface
7270
{
73-
/** @phpstan-ignore-next-line */
7471
return $this->createQueryBuilder('p')
7572
->leftJoin('p.translations', 'translation')
7673
->innerJoin('p.channels', 'channels')

0 commit comments

Comments
 (0)