Skip to content

Commit b278ad1

Browse files
authored
Merge pull request #7 from dmolnarqu/patch-1
Throwable polyfill is missing methods
2 parents 4ac9473 + 56b0a6b commit b278ad1

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/throwable.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,23 @@
22
// @codingStandardsIgnoreFile
33
// phpcs:ignore
44
if (!interface_exists('Throwable')) {
5-
interface Throwable {}
5+
interface Throwable
6+
{
7+
/** @return string */
8+
public function getMessage();
9+
/** @return int */
10+
public function getCode();
11+
/** @return string */
12+
public function getFile();
13+
/** @return int */
14+
public function getLine();
15+
/** @return array */
16+
public function getTrace();
17+
/** @return string */
18+
public function getTraceAsString();
19+
/** @return null|Throwable */
20+
public function getPrevious();
21+
/** @return string */
22+
public function __toString();
23+
}
624
}

0 commit comments

Comments
 (0)