Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
bf7a0842
Commit
bf7a0842
authored
Oct 17, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed needFix method
parent
da8f1795
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
MessageFormatter.php
framework/yii/i18n/MessageFormatter.php
+2
-14
No files found.
framework/yii/i18n/MessageFormatter.php
View file @
bf7a0842
...
...
@@ -34,7 +34,7 @@ class MessageFormatter extends \MessageFormatter
return
$this
->
getPattern
();
}
if
(
self
::
needFix
(
))
{
if
(
version_compare
(
PHP_VERSION
,
'5.5.0'
,
'<'
))
{
$pattern
=
self
::
replaceNamedArguments
(
$this
->
getPattern
(),
$args
);
$this
->
setPattern
(
$pattern
);
$args
=
array_values
(
$args
);
...
...
@@ -57,7 +57,7 @@ class MessageFormatter extends \MessageFormatter
return
$pattern
;
}
if
(
self
::
needFix
(
))
{
if
(
version_compare
(
PHP_VERSION
,
'5.5.0'
,
'<'
))
{
$pattern
=
self
::
replaceNamedArguments
(
$pattern
,
$args
);
$args
=
array_values
(
$args
);
}
...
...
@@ -114,16 +114,5 @@ class MessageFormatter extends \MessageFormatter
}
return
$pattern
;
}
/**
* Checks if fix should be applied
*
* @see http://php.net/manual/en/migration55.changed-functions.php
* @return boolean if fix should be applied
*/
private
static
function
needFix
()
{
return
version_compare
(
PHP_VERSION
,
'5.5.0'
,
'<'
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment