From f2275a560076f77afce0ffc8d080b92227cedbc7 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Mon, 5 Dec 2016 12:06:12 +0000 Subject: [PATCH] Issue #2800065 by GoZ: PhpTransliteration use data_directory default value as parameter before non-optional parameter --- .../lib/Drupal/Core/Transliteration/PhpTransliteration.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/lib/Drupal/Core/Transliteration/PhpTransliteration.php b/core/lib/Drupal/Core/Transliteration/PhpTransliteration.php index dd4e3c2eb15..8fbffc90e6e 100644 --- a/core/lib/Drupal/Core/Transliteration/PhpTransliteration.php +++ b/core/lib/Drupal/Core/Transliteration/PhpTransliteration.php @@ -24,13 +24,12 @@ class PhpTransliteration extends BaseTransliteration { * Constructs a PhpTransliteration object. * * @param string $data_directory - * (optional) The directory where data files reside. If omitted, defaults - * to subdirectory 'data' underneath the directory where the class's PHP - * file resides. + * The directory where data files reside. If NULL, defaults to subdirectory + * 'data' underneath the directory where the class's PHP file resides. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler to execute the transliteration_overrides alter hook. */ - public function __construct($data_directory = NULL, ModuleHandlerInterface $module_handler) { + public function __construct($data_directory, ModuleHandlerInterface $module_handler) { parent::__construct($data_directory); $this->moduleHandler = $module_handler;