Skip to content

Commit d1b4e4d

Browse files
committed
fix doctrine deprecation, update tests
1 parent b8e90e0 commit d1b4e4d

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878

7979
- name: Install the dependencies
8080
uses: ramsey/composer-install@v3
81+
with:
82+
dependency-versions: "lowest"
8183

8284
- name: PHPStan
8385
run: vendor/bin/phpstan analyse -c phpstan.neon
@@ -95,6 +97,8 @@ jobs:
9597

9698
- name: Install the dependencies
9799
uses: ramsey/composer-install@v3
100+
with:
101+
dependency-versions: "lowest"
98102

99103
- name: Rector
100104
run: vendor/bin/rector --dry-run --no-progress-bar

src/Command/EntityFinderCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ private function runLegacyExtendEntityFinderEvent(string $table, $id, array $par
242242

243243
private function findInserttags(ExtendEntityFinderEvent $event): void
244244
{
245-
$stmt = $this->connection->prepare(
246-
"SELECT id FROM tl_module WHERE type='html' AND html LIKE ?");
247-
248245
foreach ($event->getInserttags() as $inserttag) {
249-
$result = $stmt->executeQuery(['%'.$inserttag.'%']);
246+
$result = $this->connection->executeQuery(
247+
"SELECT id FROM tl_module WHERE type='html' AND html LIKE ?",
248+
['%'.$inserttag.'%']
249+
);
250250

251251
foreach ($result->fetchAllAssociative() as $row) {
252252
$event->addParent(ModuleModel::getTable(), $row['id']);

src/EventListener/DcaField/AliasDcaFieldListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function onFieldsAliasSaveCallback($value, DataContainer $dc)
4646
/**
4747
* Contao 4 fallback
4848
* @todo Remove when contao 5 only
49-
* @phpstan-ignore property.notFound
5049
*/
5150
$row = $dc->activeRecord?->row() ?? [];
5251
}

src/Util/RoutingUtil.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public function __construct(
3939
* route?: string
4040
* } $options Options
4141
*
42-
* @throws ContainerExceptionInterface
43-
* @throws NotFoundExceptionInterface
44-
*
4542
* @return string The backend route url
4643
*/
4744
public function generateBackendRoute(array $params = [], bool $addToken = true, bool $addReferer = true, array $options = []): string

0 commit comments

Comments
 (0)