Skip to content

Commit

Permalink
Fixed: Deprecation error being thrown (in newer versions of PHP) for …
Browse files Browse the repository at this point in the history
…unparenthesized left-associative ternary operators in
  • Loading branch information
blizzrdof77 committed Dec 11, 2019
1 parent 9702298 commit a09fb93
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog #

## v0.13.9 ##
- Fixed: Deprecation error thrown in newer versions of PHP for unparenthesized
left-associative ternary operator in `Spotifious.php`
- Changed: Updated `spotifious.sublime-project` configuration to use relative
path of the workflow directory

## v0.13.8 ##
- Fixed: Support new Spotify playlist syntax (without `user:` prefix).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Spotifious uses Packal to make sure you always have the latest version. It gives

## Download & Install ##

Latest version: [v0.13.8](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.8](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)
Latest version: [v0.13.9](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.9](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)

An in-depth [installation guide](http://ben.stolovitz.com/Spotify-for-Alfred/download/) is available on the Spotifious website.

Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ Spotifious works out of the box (just type `spotifious` in Alfred), but works be
</dict>
</dict>
<key>version</key>
<string>0.13.8</string>
<string>0.13.9</string>
<key>webaddress</key>
<string>https://github.com/citelao/Spotify-for-Alfred</string>
</dict>
Expand Down
10 changes: 5 additions & 5 deletions src/citelao/Spotifious/Spotifious.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ protected function update_playlists_cache($api) {
'id' => $playlist->id,
'name' => $playlist->name,
'uri' => $playlist->uri,
'owner' => (property_exists($playlist->owner, 'display_name'))
? $playlist->owner->display_name
: (property_exists($playlist->owner, 'id'))
? $playlist->owner->id
: 'unknown'
'owner' => (
property_exists($playlist->owner, 'display_name')
? $playlist->owner->display_name
: property_exists($playlist->owner, 'id')
) ? $playlist->owner->id : 'unknown'
);
}
$datetime = new \DateTime("now");
Expand Down

0 comments on commit a09fb93

Please sign in to comment.