diff --git a/src/Notifications/NotificationServiceProvider.php b/src/Notifications/NotificationServiceProvider.php index 1c5cba7..6bdbadb 100644 --- a/src/Notifications/NotificationServiceProvider.php +++ b/src/Notifications/NotificationServiceProvider.php @@ -80,7 +80,7 @@ private function getAppVersion() { $version = $this->app->version(); if (substr($version, 0, 7) === 'Lumen (') { - $version = array_first(explode(')', str_replace('Lumen (', '', $version))); + $version = head(explode(')', str_replace('Lumen (', '', $version))); } return $version; }