Skip to content

Numeric strings gets converted to integers #9497

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions