Skip to content

Initialize profiler property to null in Statement class#51

Merged
tyrsson merged 3 commits into
php-db:0.4.xfrom
matbech:patch-1
Jun 23, 2026
Merged

Initialize profiler property to null in Statement class#51
tyrsson merged 3 commits into
php-db:0.4.xfrom
matbech:patch-1

Conversation

@matbech

@matbech matbech commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Target Branch
Given a current release of 0.0.4

Please target your pull request to the correct branch:

  • Bugfix: Current release branch
Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no
House Keeping no

Description

In PHP, ?-> still reads the property first; an uninitialized typed property throws before it can evaluate as null.

In PHP, ?-> still reads the property first; an uninitialized typed property throws before it can evaluate as null.

Signed-off-by: Mathias Berchtold <mberchtold@gmail.com>
@tyrsson tyrsson self-assigned this Jun 23, 2026
@tyrsson tyrsson added this to the 0.4.0 milestone Jun 23, 2026
tyrsson added 2 commits June 22, 2026 21:22
Signed-off-by: Joey Smith <jsmith@webinertia.net>
Signed-off-by: Joey Smith <jsmith@webinertia.net>
@tyrsson

tyrsson commented Jun 23, 2026

Copy link
Copy Markdown
Member

Appreciate the contribution!!

@tyrsson tyrsson merged commit 293ca1e into php-db:0.4.x Jun 23, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in @phpdb-mysql Jun 23, 2026
@matbech matbech deleted the patch-1 branch June 23, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants