- Update PHP version to 7.4 in composer. v0.0.3
authorOe.Salim Duran <salim.duran@graph-it.com>
Tue, 25 Oct 2022 15:14:44 +0000 (17:14 +0200)
committerOe.Salim Duran <salim.duran@graph-it.com>
Tue, 25 Oct 2022 15:14:44 +0000 (17:14 +0200)
- Remove the unnecessary lines, declare(ticks=1)

composer.json
composer.lock
src/Thread.php

index a570d236323259995ee1b5a5c5ba71b310e7cbeb..abcf3dd78f52492e037ada82748b98d48ef02ff4 100644 (file)
@@ -8,7 +8,7 @@
         }
     ],
     "require": {
-        "php": ">=5.6.0"
+        "php": ">=7.4.0"
     },
     "autoload": {
         "psr-4": {
index 650cd75d2f9411fdb8da710be282b4b91f7c89b1..2ab8c208e79ac071d7a48a1c3d3fdc91bf29f9a4 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "371512141531f38a907ed1a5fbe3055b",
+    "content-hash": "58c138d8f2f129f5bf6e4409d5c6c02b",
     "packages": [],
     "packages-dev": [],
     "aliases": [],
@@ -13,8 +13,8 @@
     "prefer-stable": false,
     "prefer-lowest": false,
     "platform": {
-        "php": ">=5.6.0"
+        "php": ">=7.4.0"
     },
     "platform-dev": [],
-    "plugin-api-version": "2.2.0"
+    "plugin-api-version": "2.3.0"
 }
index 4bc505b435e54c88ff7f5dac3e3a6359aa0b2f5c..0a0a9d6b24da3d74524eb1c0be463007b70ca44d 100644 (file)
@@ -89,13 +89,7 @@ abstract class Thread
    */
   protected function getChildren()
   {
-    if (function_exists('pcntl_signal_dispatch')) {
-      pcntl_signal_dispatch();
-    } else {
-      declare(ticks=1) {
-        $true = true;
-      }
-    }
+    pcntl_signal_dispatch();
 
     return $this->children;
   }
@@ -126,13 +120,7 @@ abstract class Thread
    */
   public function isStopped()
   {
-    if (function_exists('pcntl_signal_dispatch')) {
-      pcntl_signal_dispatch();
-    } else {
-      declare(ticks=1) {
-        $true = true;
-      }
-    }
+    pcntl_signal_dispatch();
 
     return $this->stopped;
   }