PHP8.1 - Fix deprecated passing null to glob
authorColeman Watts <coleman@civicrm.org>
Tue, 7 Jun 2022 18:56:08 +0000 (14:56 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 7 Jun 2022 18:56:08 +0000 (14:56 -0400)
CRM/Core/Resources.php

index 6945376e6120e76d07d63190ef7cbc3ca1b86ee1..bd54a0507ceb2d9c913ba7acb308a12f9b02e6a9 100644 (file)
@@ -307,7 +307,7 @@ class CRM_Core_Resources implements CRM_Core_Resources_CollectionAdderInterface
    *   List of matching files, relative to the extension base dir.
    * @see glob()
    */
-  public function glob($ext, $patterns, $flags = NULL) {
+  public function glob($ext, $patterns, $flags = 0) {
     $path = $this->getPath($ext);
     $patterns = (array) $patterns;
     $files = [];