Skip to content

Commit

Permalink
PHP-CS-Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-T committed Mar 18, 2024
1 parent c24a019 commit edc0663
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions lib/LongitudeOne/Geo/String/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@

namespace LongitudeOne\Geo\String\Exception;

use Throwable;

/**
* Exception interface for library exceptions.
*
* @author Derek J. Lambert <dlambert@dereklambert.com>
* @license http://dlambert.mit-license.org MIT
*/
interface ExceptionInterface extends Throwable
interface ExceptionInterface extends \Throwable
{
}
9 changes: 4 additions & 5 deletions tests/LongitudeOne/Geo/String/Tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace LongitudeOne\Geo\String\Tests;

use Generator;
use LongitudeOne\Geo\String\Exception\ExceptionInterface;
use LongitudeOne\Geo\String\Exception\RangeException;
use LongitudeOne\Geo\String\Exception\UnexpectedValueException;
Expand All @@ -28,9 +27,9 @@
class ParserTest extends TestCase
{
/**
* @return Generator<array{string, class-string<ExceptionInterface>, string}>
* @return \Generator<array{string, class-string<ExceptionInterface>, string}>
*/
public static function dataSourceBad(): Generator
public static function dataSourceBad(): \Generator
{
yield ['-40°N 45°W', UnexpectedValueException::class, '[Syntax Error] line 0, col 5: Error: Expected LongitudeOne\Geo\String\Lexer::T_INTEGER or LongitudeOne\Geo\String\Lexer::T_FLOAT, got "N" in value "-40°N 45°W"'];
yield ['+40°N 45°W', UnexpectedValueException::class, '[Syntax Error] line 0, col 5: Error: Expected LongitudeOne\Geo\String\Lexer::T_INTEGER or LongitudeOne\Geo\String\Lexer::T_FLOAT, got "N" in value "+40°N 45°W"'];
Expand Down Expand Up @@ -59,9 +58,9 @@ public static function dataSourceBad(): Generator
}

/**
* @return Generator<array{int|string|float, int|string|float|int[]|float[]}>
* @return \Generator<array{int|string|float, int|string|float|int[]|float[]}>
*/
public static function dataSourceGood(): Generator
public static function dataSourceGood(): \Generator
{
yield [40, 40];
yield ['40', 40];
Expand Down

0 comments on commit edc0663

Please sign in to comment.