Skip to content

Commit

Permalink
Fix doc errors found by PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Aug 28, 2023
1 parent 825900e commit 639d288
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Binary file added src/main/php/libAllure/.ErrorHandler.php.swo
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/php/libAllure/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Database extends \PDO
public $queryCount = 0;

/**
@throws PDOException if it cannot connect
@throws \PDOException if it cannot connect
*/
public function __construct($dsn, $username, $password)
{
Expand Down
16 changes: 8 additions & 8 deletions src/main/php/libAllure/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class ErrorHandler
/**
* Constructs the new class.
*
* @param greedy Whether or not this class can be greedy: is allowed to
* @param $greedy Whether or not this class can be greedy: is allowed to
* capture all types of errors that it can bind to.
*/
public function __construct($greedy = true)
public function __construct(bool $greedy = true)
{
if ($greedy) {
$this->beGreedy();
Expand Down Expand Up @@ -63,12 +63,12 @@ protected function clearOutputBuffers()
/**
* Print the error out.
*
* @param trigger What triggored this error.
* @param message The message for the error.
* @param code The code for the error.
* @param file The file that this error came from.
* @param line The line that this error came from.
* @param stacktrace A stacktrace leading up to this error ( should be a
* @param $trigger What triggored this error.
* @param $message The message for the error.
* @param $code The code for the error.
* @param $file The file that this error came from.
* @param $line The line that this error came from.
* @param $stacktrace A stacktrace leading up to this error ( should be a
* array).
*/
protected function render($trigger, $message, $code = null, $file = null, $line = null, $stacktrace = null)
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/libAllure/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function buildGroup()

/**
* Builds the actual SQL.
* @return Cake asdf
* @return string The SQL string.
*/
public function build(): string
{
Expand Down

0 comments on commit 639d288

Please sign in to comment.