Can you test this version of your code:
<?php
declare(strict_types=1);
// Error reporting
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
/**
* Check if GD and FreeType are available
*
* @return void
* @throws RuntimeException if GD or...