diff --git a/composer.json b/composer.json index 394724f..04aa2ed 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { - "name":"typearea/hyphenator", + "name":"pw6/hyphenator", "type":"library", "description":"Hyphenator is a cache-enabled PHP port of the JavaScript Hyphenator.js by Mathias Nater, and this is a bugfix fork of github.com/webrocker/hyphenator", "keywords":["hyphenator", "hyphenation", "hyphenate"], "homepage":"https://github.com/typearea/hyphenator", - "license":"New BSD", + "license":"BSD-3-Clause", "authors":[ { "name":"Marco Fischer", diff --git a/src/Hyphenator/Cache/MemcachedCache.php b/src/Hyphenator/Cache/MemcachedCache.php index c56edd7..98e2677 100644 --- a/src/Hyphenator/Cache/MemcachedCache.php +++ b/src/Hyphenator/Cache/MemcachedCache.php @@ -38,7 +38,7 @@ class MemcachedCache implements CacheInterface */ protected $connection = null; - public function __construct(\Memcache $connection = null) + public function __construct(?\Memcache $connection = null) { if (!extension_loaded('memcache')) { throw new MissingExtensionException('PHP extension memcache ist not loaded. You cannot use this cache.'); @@ -61,4 +61,4 @@ public function store($cacheKey, $data) { return $this->connection->set($cacheKey, $data); } -} \ No newline at end of file +} diff --git a/src/Hyphenator/Core.php b/src/Hyphenator/Core.php index 95f0f6b..e11d48d 100644 --- a/src/Hyphenator/Core.php +++ b/src/Hyphenator/Core.php @@ -105,7 +105,7 @@ class Core * @param null $patternsPath * @param Cache\CacheInterface $cache */ - public function __construct($patternsPath = null, CacheInterface $cache = null) + public function __construct($patternsPath = null, ?CacheInterface $cache = null) { if ($patternsPath) { $this->patternsPath = realpath($patternsPath);