Skip to content

Commit 6e1b71a

Browse files
authored
Update generate-function-metadata.php
1 parent 120bc98 commit 6e1b71a

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

bin/generate-function-metadata.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ public function enterNode(Node $node)
9999
$template = <<<'php'
100100
<?php declare(strict_types = 1);
101101
102+
/**
103+
* GENERATED FILE - DO NOT EDIT!
104+
*
105+
* This file is generated automatically when running bin/generate-function-metadata.php
106+
* and the result is merged from bin/functionMetadata_original.php and by looking at jetbrains/phpstorm-stubs methods
107+
* and functions with the #[Pure] attribute.
108+
*
109+
* If you want to add new entries here follow these steps:
110+
* 1) verify on https://phpstan.org/try whether the entry you are going to add does not already work as expected.
111+
* 2) Contribute the functions that have 'hasSideEffects' => true as a modification to bin/functionMetadata_original.php.
112+
* 3) Contribute the #[Pure] functions without side effects to https://github.com/JetBrains/phpstorm-stubs
113+
* 4) Once the PR from 3) is merged, please update the package here and run ./bin/generate-function-metadata.php.
114+
*/
115+
102116
return [
103117
%s
104118
];

resources/functionMetadata.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
<?php declare(strict_types = 1);
22

3+
/**
4+
* GENERATED FILE - DO NOT EDIT!
5+
*
6+
* This file is generated automatically when running bin/generate-function-metadata.php
7+
* and the result is merged from bin/functionMetadata_original.php and by looking at jetbrains/phpstorm-stubs methods
8+
* and functions with the #[Pure] attribute.
9+
*
10+
* If you want to add new entries here follow these steps:
11+
* 1) verify on https://phpstan.org/try whether the entry you are going to add does not already work as expected.
12+
* 2) Contribute the functions that have 'hasSideEffects' => true as a modification to bin/functionMetadata_original.php.
13+
* 3) Contribute the #[Pure] functions without side effects to https://github.com/JetBrains/phpstorm-stubs
14+
* 4) Once the PR from 3) is merged, please update the package here and run ./bin/generate-function-metadata.php.
15+
*/
16+
317
return [
418
'CURLFile::getFilename' => ['hasSideEffects' => false],
519
'CURLFile::getMimeType' => ['hasSideEffects' => false],

0 commit comments

Comments
 (0)