Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit fe60e2a

Browse files
committed
bugfix PDOException return string as code, also doc say thats getCode return mixed, so we have to caste to int, to avoid FatalErrors
1 parent 3da3459 commit fe60e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ private function doCreate($resolvedName, array $options = null)
755755
'Service with name "%s" could not be created. Reason: %s',
756756
$resolvedName,
757757
$exception->getMessage()
758-
), $exception->getCode(), $exception);
758+
), (int)$exception->getCode(), $exception);
759759
}
760760

761761
foreach ($this->initializers as $initializer) {

0 commit comments

Comments
 (0)