Skip to content

Desugar a php8 class constructor with equivalent class properties and constructor assignments

License

Notifications You must be signed in to change notification settings

fnash/desugar-constructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desugar-constructor

Desugar a php8 class constructor with equivalent class properties and constructor assignments

Install

$ mkdir -p tools/desugar-constructor
$ composer require --working-dir=tools/desugar-constructor fnash/desugar-constructor @dev

Usage

$ tools/desugar-constructor/vendor/bin/desugar ./myClass.php

Pretty printing

Please consider using a tool like PHP-CS-Fixer.

Use as a PhpStorm External Tool

Menu Preferences => Tools => External tools

Dialog form

Program: tools/desugar-constructor/vendor/bin/desugar

Arguments: $FilePath$

Working directory: $FileDir$

Add a Key map

Enjoy!

About

Desugar a php8 class constructor with equivalent class properties and constructor assignments

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages