| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | |
| 60 | 60 | public static function get_resource_id($res): int |
| 61 | 61 | { |
| 62 | 62 | if (!\is_resource($res) && null === @get_resource_type($res)) { |
| 63 | - throw new \TypeError(sprintf('Argument 1 passed to get_resource_id() must be of the type resource, %s given', get_debug_type($res))); | |
| 63 | + throw new \TypeError(\sprintf('Argument 1 passed to get_resource_id() must be of the type resource, %s given', get_debug_type($res))); | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | return (int) $res; |
| 67 | 67 | } |