Skip to content

Commit

Permalink
Fix error on php < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan committed Jul 13, 2017
1 parent b294708 commit 9c4c404
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,29 @@ Class for names declension.
* `public function getCase($name, $form, $gender)` - Generates one case of a name.

#### `morphos\GeneralDeclension`
Class for general declension.

* `public function isMutable($word, $animate = false);` - Checks, whether there are rules for this word.
* `public function getCases($word, $animate = false);` - Generates all cases of a word.
* `public function getCase($word, $form, $animate = false);` - Generates one case of a word.

#### `morphos\NumeralCreation`
Class for numerals generation.

* `public function getCases($number)` - Generates all cases for a number.
* `public function getCase($number, $case)` - Generates one case for a number.

#### `morphos\MoneySpeller`
Class for spelling out money amounts.

* `public function spell($value, $currency)` - Spells money amount in natural language.

#### `morphos\TimeUnitSpeller`
Class for spelling out date intervals and time units.

* `public function spellUnit($count, $unit)` - Spells time unit in natural language.
* `public function spellInterval(DateInterval $interval)` - Spells date interval in natural language.

### String helper
Morphos distributed with a string helper supporting multibyte encodings. Class is `morphos\S`.

Expand Down
2 changes: 1 addition & 1 deletion src/MoneySpeller.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ abstract class MoneySpeller implements Currency
const CLARIFICATION_FORMAT = 'clarification';
const DUPLICATION_FORMAT = 'duplication';

abstract public static function spell($value, $currency, $format = self::NORMAL_FORMAT);
public static function spell($value, $currency, $format = self::NORMAL_FORMAT) {}
}

0 comments on commit 9c4c404

Please sign in to comment.