Skip to content

Commit

Permalink
Merge pull request #73 from maximehuran/feature/few-changes
Browse files Browse the repository at this point in the history
Change docker composer and reduce PHP Stan level
  • Loading branch information
maximehuran authored Aug 27, 2024
2 parents 73fd672 + 41e5d85 commit 79606f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export COMPOSE_PROJECT_NAME=cms-page
export MIGRATIONS_NAMESPACE=MonsieurBiz\\SyliusCmsPagePlugin\\Migrations
export USER_UID=$(shell id -u)
PLUGIN_NAME=sylius-${COMPOSE_PROJECT_NAME}-plugin
COMPOSE=docker-compose
COMPOSE=docker compose
YARN=yarn

###
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: max
level: 8
paths:
- %rootDir%/src/

Expand Down
3 changes: 0 additions & 3 deletions src/Repository/PageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function existsOneByChannelAndSlug(ChannelInterface $channel, ?string $lo
;
}

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

/** @phpstan-ignore-next-line */
$count = (int) $queryBuilder
->getQuery()
->getSingleScalarResult()
Expand All @@ -70,7 +68,6 @@ public function existsOneEnabledByChannelAndSlug(ChannelInterface $channel, ?str
*/
public function findOneEnabledBySlugAndChannelCode(string $slug, string $localeCode, string $channelCode): ?PageInterface
{
/** @phpstan-ignore-next-line */
return $this->createQueryBuilder('p')
->leftJoin('p.translations', 'translation')
->innerJoin('p.channels', 'channels')
Expand Down

0 comments on commit 79606f4

Please sign in to comment.