Skip to content

Commit 79c0720

Browse files
committed
Add modernize_types_casting fixer
1 parent 7942dcf commit 79c0720

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co
99

1010
## Unreleased
1111

12+
## v5.9.0
13+
14+
### Added
15+
16+
- Add `modernize_types_casting` fixer
17+
1218
## v5.8.0
1319

1420
### Added

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ function risky(Finder $finder, array $ruleOverrides = []): Config
9595
{
9696
$riskyRules = [
9797
'declare_strict_types' => true,
98-
9998
// Technically not strict rules, but they go hand-in-hand with declare_strict_types
10099
// to achieve a first line of: "<?php declare(strict_types=1);" with no extra newlines
101100
// see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4252
102101
'linebreak_after_opening_tag' => false,
103102
'blank_line_after_opening_tag' => false,
104103

105104
'logical_operators' => true,
105+
'modernize_types_casting' => true,
106106
];
107107

108108
return config($finder, array_merge($riskyRules, $ruleOverrides))

0 commit comments

Comments
 (0)