* @param $contentType A valid content-type
* @return $debugInstance An instance of this middleware class
*/
- public static final function createConsoleOutput ($contentType) {
+ public static final function createConsoleOutput (string $contentType) {
// Cast the content-type to string
- $contentType = (string) $contentType;
$contentType = trim($contentType);
// Get instance
* @param $stripTags Whether HTML tags shall be stripped out
* @return void
*/
- public final function output ($outStream = false, $stripTags = false) {
+ public final function output (string $outStream = '', bool $stripTags = false) {
print trim($outStream) . PHP_EOL;
}