Skip to content

Commit

Permalink
load stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 18, 2024
1 parent b9b0f60 commit 216aed1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
7 changes: 6 additions & 1 deletion build/target-repository/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
},
"bin": [
"bin/rule-doc-generator"
]
],
"autoload": {
"classmap": [
"stubs"
]
}
}
2 changes: 1 addition & 1 deletion scoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
'stubs/Rector/Core/Contract/Rector/RectorInterface.php',
],

// @todo unprefix class names?

];
12 changes: 12 additions & 0 deletions stubs/PHPStan/Rules/Rule.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace PHPStan\Rules;

// if exists
if (interface_exists(Rule::class)) {
return;
}

interface Rule
{
}

0 comments on commit 216aed1

Please sign in to comment.