Skip to content

Commit

Permalink
Improving PHP7 support: adding type hints, return types
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsparks committed Jan 30, 2017
1 parent b3cf652 commit edbb12e
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 105 deletions.
8 changes: 0 additions & 8 deletions src/Exceptions/CreatingStringException.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/L33t.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class L33t {
'z' => ['2', '-/_', '%'],
];

public static function makeItL33t($character) {
public static function makeItL33t(string $character) : string {
$lower = strtolower($character);

if(array_key_exists($lower, self::$letters)) {
Expand Down
Loading

0 comments on commit edbb12e

Please sign in to comment.