Skip to content

Commit 8a886f3

Browse files
committed
Update TraitException.php
1 parent cf2761b commit 8a886f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TraitException.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ trait TraitException
2222

2323
/**
2424
* Throw error controller.
25-
*
25+
*
2626
* @access public
2727
* @param int $code
2828
* @param string $message
2929
* @return void
3030
*/
31-
public function throwError($code = 404, $message = null)
31+
public function throwError(int $code = 404, ?string $message = null)
3232
{
3333
$render = true;
3434
if ( $this->hasItem('method', $this, 'getApiBaseUrl') ) {

0 commit comments

Comments
 (0)