Skip to content

Commit c08b988

Browse files
committed
Merge branch '4.0.x' into 4.1.x
* 4.0.x: Fix example for QB delete and update in doc block Bump doctrine/.github from 5.0.0 to 5.0.1 (#6391) PHPStan 1.10.67, PHPUnit 9.6.19, PHPCS 3.9.2 (#6387) Fix "Plugin 'mysql_native_password' is not loaded" (#6388) Run tests against MySQL 8.4 (#6386)
2 parents f3b4c93 + fe400e7 commit c08b988

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ on:
2525
jobs:
2626
coding-standards:
2727
name: "Coding Standards"
28-
uses: "doctrine/.github/.github/workflows/[email protected].0"
28+
uses: "doctrine/.github/.github/workflows/[email protected].1"

.github/workflows/continuous-integration.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ jobs:
353353
mysql-version:
354354
- "5.7"
355355
- "8.0"
356-
- "8.3"
357356
extension:
358357
- "mysqli"
359358
- "pdo_mysql"
@@ -370,6 +369,16 @@ jobs:
370369
- php-version: "8.3"
371370
mysql-version: "8.0"
372371
extension: "pdo_mysql"
372+
- php-version: "8.1"
373+
mysql-version: "8.4"
374+
extension: "mysqli"
375+
custom-entrypoint: >-
376+
--entrypoint sh mysql:8.4 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON"
377+
- php-version: "8.1"
378+
mysql-version: "8.4"
379+
extension: "pdo_mysql"
380+
custom-entrypoint: >-
381+
--entrypoint sh mysql:8.4 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON"
373382
374383
services:
375384
mysql:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
"doctrine/coding-standard": "12.0.0",
4141
"fig/log-test": "^1",
4242
"jetbrains/phpstorm-stubs": "2023.2",
43-
"phpstan/phpstan": "1.10.58",
44-
"phpstan/phpstan-phpunit": "1.3.15",
43+
"phpstan/phpstan": "1.10.67",
44+
"phpstan/phpstan-phpunit": "1.3.16",
4545
"phpstan/phpstan-strict-rules": "^1.5",
4646
"phpunit/phpunit": "10.5.9",
4747
"psalm/plugin-phpunit": "0.18.4",
4848
"slevomat/coding-standard": "8.13.1",
49-
"squizlabs/php_codesniffer": "3.9.0",
49+
"squizlabs/php_codesniffer": "3.9.2",
5050
"symfony/cache": "^6.3.8|^7.0",
5151
"symfony/console": "^5.4|^6.3|^7.0",
5252
"vimeo/psalm": "5.21.1"

src/Query/QueryBuilder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ public function addSelect(string $expression, string ...$expressions): self
580580
*
581581
* <code>
582582
* $qb = $conn->createQueryBuilder()
583-
* ->delete('users', 'u')
584-
* ->where('u.id = :user_id')
583+
* ->delete('users')
584+
* ->where('users.id = :user_id')
585585
* ->setParameter(':user_id', 1);
586586
* </code>
587587
*
@@ -606,9 +606,9 @@ public function delete(string $table): self
606606
*
607607
* <code>
608608
* $qb = $conn->createQueryBuilder()
609-
* ->update('counters', 'c')
610-
* ->set('c.value', 'c.value + 1')
611-
* ->where('c.id = ?');
609+
* ->update('counters')
610+
* ->set('counters.value', 'counters.value + 1')
611+
* ->where('counters.id = ?');
612612
* </code>
613613
*
614614
* @param string $table The table whose rows are subject to the update.

0 commit comments

Comments
 (0)