strikt types

This commit is contained in:
Troy Grunt
2026-02-15 14:45:02 +01:00
parent a093603c3c
commit cd031464e6
13 changed files with 77 additions and 69 deletions

6
og.php
View File

@@ -1,5 +1,7 @@
<?php
function scanOG($url) {
declare(strict_types=1);
function scanOG(string $url): array {
$og = array();
$html = file_get_contents($url);
@@ -12,4 +14,4 @@ function scanOG($url) {
//print_r($og);
return $og;
}
?>
?>