Skip to content

Commit

Permalink
Fix deprecation in php 8.1
Browse files Browse the repository at this point in the history
fixes #128
  • Loading branch information
gharlan committed Jan 1, 2022
1 parent 2a1f2f3 commit cfe4624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function init($enterprise = false, $query = null, $hotkey = false)
date_default_timezone_set('UTC');

self::$enterprise = $enterprise;
self::$query = ltrim($query);
self::$query = ltrim($query ?? '');
self::$hotkey = $hotkey;

$dataDir = getenv('alfred_workflow_data');
Expand Down

0 comments on commit cfe4624

Please sign in to comment.