From 037b24550fa16dbaf2131c7bd9d39c6f9c0d39bc Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Tue, 26 Jan 2021 21:33:52 -0500 Subject: [PATCH] Fix #5099 - use class constant for default --- stubs/pdo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/pdo.php b/stubs/pdo.php index 248dc9ae8..257995168 100644 --- a/stubs/pdo.php +++ b/stubs/pdo.php @@ -9,5 +9,5 @@ class PdoStatement implements Traversable { * @param array $ctorArgs * @return false|T */ - public function fetchObject($class = "stdclass", array $ctorArgs = array()) {} + public function fetchObject($class = \stdclass::class, array $ctorArgs = array()) {} }