Skip to content

Commit

Permalink
fixed backward compatibility with PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
suomato committed Nov 9, 2017
1 parent dc9197c commit e10255a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Luna.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Luna
{
public static $version = '1.1.0';
public static $version = '1.1.1';

public static function commands()
{
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
function build_custom_post_type($template, $name, $plural)
{
$singular = $name;
$plural = $plural ?? "{$name}s";
$plural = isset($plural) ? $plural : "{$name}s";

$content = str_replace('movies', $plural, $template);
$content = str_replace('Movies', ucfirst($plural), $content);
Expand Down

0 comments on commit e10255a

Please sign in to comment.