File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Demacroable
2
+
3
+ Illuminate components often depends on the "[ macroable] ( https://github.com/illuminate/macroable ) " (aka Monkey patching) package.
4
+ This package replace the official ` illuminate/macroable ` package with an empty trait.
5
+
6
+ This package makes the macroable trait empty and removes the possibility to monkey patch
7
+ some illuminate components (using the ` Macroable ` trait) at runtime, forcing end users to
8
+ compose (or inherit) with illuminate components in production or use mocking for tests.
9
+
10
+ > ! Use at your own risk
11
+
12
+ ## Install
13
+
14
+ ```
15
+ composer req bafs/illuminate-demacroable
16
+ ```
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Illuminate \Support \Traits ;
6
+
7
+ trait Macroable
8
+ {
9
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " bafs/illuminate-demacroable" ,
3
+ "description" : " The Demacroable package, to remove monkey patching from your codebase." ,
4
+ "license" : " MIT" ,
5
+ "require" : {
6
+ "php" : " ^8.0"
7
+ },
8
+ "autoload" : {
9
+ "psr-4" : {
10
+ "Illuminate\\ Support\\ " : " "
11
+ }
12
+ },
13
+ "replace" : {
14
+ "illuminate/macroable" : " *"
15
+ },
16
+ "minimum-stability" : " dev"
17
+ }
You can’t perform that action at this time.
0 commit comments