Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
3eff727c
Commit
3eff727c
authored
Oct 06, 2021
by
Thomas Löffler
Browse files
Use int value to compare and check if LTS version
parent
19b4ff36
Pipeline
#17650
passed with stages
in 5 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/ter_fe2/Classes/Service/LTSVersionService.php
View file @
3eff727c
...
...
@@ -281,7 +281,7 @@ class LTSVersionService
public
function
isVersionLTS
(
int
$versionNumber
):
bool
{
$firstRelease
=
$this
->
getFirstReleaseOfMainVersion
(
$versionNumber
);
$mainVersion
=
$firstRelease
/
self
::
FACTOR_MAIN_VERSION
;
$mainVersion
=
floor
(
$firstRelease
/
self
::
FACTOR_MAIN_VERSION
)
;
return
(
$mainVersion
>=
self
::
FIRST_LTS_VERSION_WITH_MAIN_VERSION_NUMBER
&&
$mainVersion
<=
$this
->
getLatestDevelopmentVersion
())
||
in_array
(
$firstRelease
,
$this
->
ltsVersionsWithMinorVersions
,
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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