File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed
src/Fixer/PhpBasic/Feature
tests/Fixer/PhpBasic/Feature Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ Semantic Versioning is maintained only for the following:
1111The fixers themselves can change their behavior on any update.
1212New fixers could be added with minor releases, this would require changes in configuration if migration mode is used.
1313
14+ ## 2.2.3
15+
16+ ### Removed
17+
18+ - Some functions without substitutions in PHP Date/Time classes were removed from DateTimeFixer
19+
1420## 2.2.2
1521
1622### Added
Original file line number Diff line number Diff line change @@ -20,13 +20,10 @@ public function __construct()
2020 {
2121 parent ::__construct ();
2222 $ this ->dateFunctions = [
23- 'checkdate ' ,
2423 'date_add ' ,
2524 'date_create_from_format ' ,
2625 'date_create ' ,
2726 'date_date_set ' ,
28- 'date_default_timezone_get ' ,
29- 'date_default_timezone_set ' ,
3027 'date_diff ' ,
3128 'date_format ' ,
3229 'date_get_last_errors ' ,
@@ -38,9 +35,6 @@ public function __construct()
3835 'date_parse_from_format ' ,
3936 'date_parse ' ,
4037 'date_sub ' ,
41- 'date_sun_info ' ,
42- 'date_sunrise ' ,
43- 'date_sunset ' ,
4438 'date_time_set ' ,
4539 'date_timestamp_get ' ,
4640 'date_timestamp_set ' ,
@@ -54,7 +48,6 @@ public function __construct()
5448 'gmstrftime ' ,
5549 'idate ' ,
5650 'localtime ' ,
57- 'microtime ' ,
5851 'mktime ' ,
5952 'strftime ' ,
6053 'strptime ' ,
@@ -63,12 +56,11 @@ public function __construct()
6356 'timezone_abbreviations_list ' ,
6457 'timezone_identifiers_list ' ,
6558 'timezone_location_get ' ,
66- 'timezone_name_from_ abbr ' ,
59+ 'timezone_name_from_abbr ' ,
6760 'timezone_name_get ' ,
6861 'timezone_offset_get ' ,
6962 'timezone_open ' ,
7063 'timezone_transitions_get ' ,
71- 'timezone_version_get ' ,
7264 ];
7365 }
7466
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ public function provideCases()
2626 '<?php $otherDate = date("l jS \of F Y h:i:s A"); // TODO: "date" - PhpBasic convention 3.19: Use \\DateTime object instead ' ,
2727 '<?php $otherDate = date("l jS \of F Y h:i:s A"); ' ,
2828 ],
29- [
30- '<?php date_default_timezone_set("UTC"); // TODO: "date_default_timezone_set" - PhpBasic convention 3.19: Use \\DateTime object instead ' ,
31- '<?php date_default_timezone_set("UTC"); ' ,
32- ],
3329 [
3430 '<?php $someDate = date("l"); // TODO: "date" - PhpBasic convention 3.19: Use \\DateTime object instead ' ,
3531 '<?php $someDate = date("l"); ' ,
You can’t perform that action at this time.
0 commit comments