From: Roland Häder Date: Fri, 6 Nov 2020 15:22:55 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c15d02389e67a880e7b4c6b19f2b06722efa4e6f;p=core.git Continued: - first primitive type added, more will follow Signed-off-by: Roland Häder --- diff --git a/contrib/audio.php b/contrib/audio.php index 9d093276..3bf11ac5 100644 --- a/contrib/audio.php +++ b/contrib/audio.php @@ -55,7 +55,7 @@ function analyzeForNoiseOnly ($data) { } //$pcm = fopen('output1.pcm', 'rb') or die('Cannot read from audio'); -$pcm = fopen('/dev/dsp2', 'rb') or die('Cannot read from audio' . PHP_EOL); +$pcm = fopen('/dev/dsp', 'rb') or die('Cannot read from audio' . PHP_EOL); $empty = str_repeat(chr(128), $GLOBALS['options']['buffer_size']); diff --git a/framework/main/classes/request/class_BaseRequest.php b/framework/main/classes/request/class_BaseRequest.php index c56648f1..b855bb03 100644 --- a/framework/main/classes/request/class_BaseRequest.php +++ b/framework/main/classes/request/class_BaseRequest.php @@ -124,8 +124,8 @@ abstract class BaseRequest extends BaseFrameworkSystem { * @param $isValid Whether the request is valid * @return void */ - public final function requestIsValid ($isValid = true) { - $this->requestIsValid = (bool) $isValid; + public final function requestIsValid (bool $isValid = true) { + $this->requestIsValid = $isValid; } /** diff --git a/framework/main/interfaces/request/class_Requestable.php b/framework/main/interfaces/request/class_Requestable.php index 34ca1613..60def40c 100644 --- a/framework/main/interfaces/request/class_Requestable.php +++ b/framework/main/interfaces/request/class_Requestable.php @@ -75,7 +75,7 @@ interface Requestable extends FrameworkInterface { * @param $isValid Whether the request is valid * @return void */ - function requestIsValid ($isValid = true); + function requestIsValid (bool $isValid = true); /** * Returns whether this request is valid