Skip to content

Numeric strings gets converted to integers #9497

@leoleva

Description

@leoleva

Bug Report

Rector version: Rector 2.2.7

Numeric strings gets converted to integers

Minimal PHP Code Causing Issue

https://getrector.com/demo/fbbafe10-f1d1-4353-b03f-4ce5583cd4fc

-    /**
-     * @OA\Property(
-     *     example="01112"
-     * )
-     */
+    #[OA\Property(example: 1112)]

Expected Behaviour

It should remain as a string

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions