Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 6 Nov 2020 15:22:55 +0000 (16:22 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 6 Nov 2020 15:22:55 +0000 (16:22 +0100)
- first primitive type added, more will follow

Signed-off-by: Roland Häder <roland@mxchange.org>
contrib/audio.php
framework/main/classes/request/class_BaseRequest.php
framework/main/interfaces/request/class_Requestable.php

index 9d093276968562dea9198cf2756e887083162c38..3bf11ac58b111779e7ca4787bfabcea7889a4feb 100644 (file)
@@ -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']);
 
index c56648f12f453a69d241a0f6075d1109c51200dc..b855bb03d852ab96c86c21231f3a35b518b4dc82 100644 (file)
@@ -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;
        }
 
        /**
index 34ca1613c4f8609779ff415042cb300e72b3b29b..60def40ceb56926882ec15394d49ef1ae35cb8b4 100644 (file)
@@ -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