Skip to content

Type confusion: preg_match(): $flags is type int#9686

Merged
alecpl merged 1 commit intoroundcube:masterfrom
pajod:patch-1
Nov 19, 2024
Merged

Type confusion: preg_match(): $flags is type int#9686
alecpl merged 1 commit intoroundcube:masterfrom
pajod:patch-1

Conversation

@pajod
Copy link
Copy Markdown
Contributor

@pajod pajod commented Nov 1, 2024

No functional change intended, just makes one warning go away.

PHP: Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in program/lib/Roundcube/rcube_result_thread.php
 preg_match(
    string $pattern,
    string $subject,
    array &$matches = null,
    int $flags = 0,
    int $offset = 0
): int|false

https://www.php.net/manual/de/function.preg-match.php

PHP: Deprecated: preg_match(): Passing null to parameter roundcube#4 ($flags) of type int is deprecated in program/lib/Roundcube/rcube_result_thread.php

 preg_match(
    string $pattern,
    string $subject,
    array &$matches = null,
    int $flags = 0,
    int $offset = 0
): int|false

https://www.php.net/manual/de/function.preg-match.php
@alecpl alecpl merged commit 3b6eebc into roundcube:master Nov 19, 2024
alecpl pushed a commit that referenced this pull request Nov 19, 2024
PHP: Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in program/lib/Roundcube/rcube_result_thread.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants