Skip to content

Commit

Permalink
Add missing methods to the Throwable polyfill
Browse files Browse the repository at this point in the history
To prevent issues with static analysis.
  • Loading branch information
dmolnarqu authored Jun 3, 2022
1 parent 4ac9473 commit 56b0a6b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/throwable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,23 @@
// @codingStandardsIgnoreFile
// phpcs:ignore
if (!interface_exists('Throwable')) {
interface Throwable {}
interface Throwable
{
/** @return string */
public function getMessage();
/** @return int */
public function getCode();
/** @return string */
public function getFile();
/** @return int */
public function getLine();
/** @return array */
public function getTrace();
/** @return string */
public function getTraceAsString();
/** @return null|Throwable */
public function getPrevious();
/** @return string */
public function __toString();
}
}

0 comments on commit 56b0a6b

Please sign in to comment.