Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ca90eab

Browse files
simplify
1 parent 6f4fce6 commit ca90eab

File tree

3 files changed

+10
-95
lines changed

3 files changed

+10
-95
lines changed

‎.github/workflows/phpstan.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
include:
1919
- php-version: "8.0"
2020
db-image: 'mysql:8.0'
21-
- php-version: "8.1"
22-
db-image: 'mysql:8.0'
2321

2422
# https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
2523
services:

‎.github/workflows/tests.yml‎

Lines changed: 0 additions & 89 deletions
This file was deleted.

‎demo.php‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@
22

33
function demo(\PDO $pdo): void
44
{
5+
$pdo->query('SELECT * FROM unknownTable', PDO::FETCH_ASSOC);
6+
7+
$pdo->query('SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada', PDO::FETCH_ASSOC);
8+
9+
$pdo->query('SELECT doesNotExist, adaid, gesperrt, freigabe1u1 FROM ada', PDO::FETCH_ASSOC);
10+
511
$stmt = $pdo->prepare('SELECT email, adaid FROM ada WHERE adaid = :adaid');
612
$stmt->execute([':wrongParamName' => 1]);
713

814
$stmt = $pdo->prepare('SELECT email, adaid FROM ada WHERE adaid = :adaid');
9-
$stmt->execute();// missing parameter
15+
$stmt->execute();
1016

1117
$stmt = $pdo->prepare('SELECT email, adaid FROM ada WHERE adaid = ? and email = ?');
12-
$stmt->execute([1]);// wrong number of parameters
18+
$stmt->execute([1]);
1319

1420
$stmt = $pdo->prepare('SELECT email, adaid FROM ada WHERE adaid = :adaid and email = :email');
15-
$stmt->execute(['adaid' => 1]);// wrong number of parameters
21+
$stmt->execute(['adaid' => 1]);
1622

1723
$stmt = $pdo->prepare('SELECT email, adaid FROM ada WHERE adaid = :adaid and email = :email');
18-
$stmt->execute([':email' => 'email@example.org']);// wrong number of parameters
24+
$stmt->execute([':email' => 'email@example.org']);
1925
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /