Issues (45)

src/StartGuarding.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Imanghafoori\HeyMan;
4
5
class StartGuarding
6
{
7 121
    public function start()
8
    {
9 121
        $chains = resolve('heyman.chains')->data;
10
11 121
        foreach ($chains as $manager => $data) {
12 104
            resolve($manager)->startWatching($data);
0 ignored issues
show
The method startWatching() does not exist on Illuminate\Foundation\Application. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

12
            resolve($manager)->/** @scrutinizer ignore-call */ startWatching($data);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
13
        }
14
15
        // We free up the memory here ...
16
        // Although it is a very small amount
17 121
        resolve('heyman.chains')->data = [];
18 121
    }
19
}
20