mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
Enable strict exception type hint checking in PHPStan and add exception type hints
This commit is contained in:
parent
559e4a5e05
commit
c4c8e7353f
26 changed files with 300 additions and 82 deletions
|
@ -1,4 +1,10 @@
|
|||
<?
|
||||
|
||||
use Exceptions\InvalidUrlException;
|
||||
use Safe\Exceptions\PcreException;
|
||||
use Exceptions\InvalidMuseumUrlException;
|
||||
use Exceptions\InvalidPageScanUrlException;
|
||||
|
||||
use function Safe\parse_url;
|
||||
use function Safe\preg_match;
|
||||
use function Safe\preg_replace;
|
||||
|
@ -10,6 +16,11 @@ class Museum{
|
|||
public string $Name;
|
||||
public string $Domain;
|
||||
|
||||
/**
|
||||
* @throws Exceptions\InvalidUrlException
|
||||
* @throws Exceptions\InvalidMuseumUrlException
|
||||
* @throws Exceptions\InvalidPageScanUrlException
|
||||
*/
|
||||
public static function NormalizeUrl(string $url): string{
|
||||
$outputUrl = $url;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue