-
## Is your feature request related to a problem?
While working on #684, I noticed that the sniff `Generic.Metrics.CyclomaticComplexity` doesn't check the cyclomatic complexity of anonymous function…
-
## anonymous_functions_tojs
## Description
Warns about the usage of await and untyped arguments and how they interact with .toJS
## Details
Anonymous functions can cause confusing compile …
-
The title mentions anonymous functions, but all examples shown appear to use named methods.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub…
-
### Bug report
You asked to open various small issues [here](https://github.com/phpstan/phpstan/issues/10685#issuecomment-2340316447):
> I'm closing this issue because the samples shown are inco…
-
### Description
The ability to create anonymous function/method inside of a class.
This can allow for the creation of classes that can simply be executed without pointing to a named property
He…
-
*Context: improving error experience for beginner Julia programmers.*
In this example, you get a `MethodError` for your anonymous method (`::var"#3#4"`):
```julia-repl
julia> vals = [5,6,10,20];
ju…
fonsp updated
1 month ago
-
In functional languages like rescript, recursion is an important mode of control flow, on par with (or even more important than) loops. For that reason, some languages (like Scheme) have syntactic sug…
-
### Bug report
This works fine: https://phpstan.org/r/27c3e894-f688-4381-aac6-699ecf3aa64f
Now let's try generic callable types from [1.10.60](https://github.com/phpstan/phpstan/releases/tag/1.10.60…
-
### Is your feature request related to a problem?
A lot of times I need to make simple anonymous functions to function like array_filter, array_foreach and etc. But sometimes what I want to do is ver…
-
# Bug report
```php
spl_autoload_register(
/**
* @param class-string $class_name The fully-qualified class name.
* @return void
*/
static function ($class_name) {
```
…