Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions phpdotnet/phd/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Autoloader
*/
private static array $package_dirs = [];

public static function autoload($name)
public static function autoload(string $name): void
{
// Only try autoloading classes we know about (i.e. from our own namespace)
if (strncmp('phpdotnet\phd\\', $name, 14) === 0) {
Expand All @@ -24,12 +24,10 @@ public static function autoload($name)
fclose($fp);
require $file;

return false;
return;
}
trigger_error(vsprintf('Cannot find file for %s: %s', [$name, $file ?? $filename]), E_USER_ERROR);
}

return false;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion render.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
exit(0);
}

function make_reader(Config $config, OutputHandler $outputHandler) {
function make_reader(Config $config, OutputHandler $outputHandler): Reader {
//Partial Rendering
$idlist = $config->renderIds + $config->skipIds;
if (!empty($idlist)) {
Expand Down