PHP code example of brandembassy / phpstan-forbidden-method-calls-rule

1. Go to this page and download the library: Download brandembassy/phpstan-forbidden-method-calls-rule library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

brandembassy / phpstan-forbidden-method-calls-rule example snippets


 ------ ----------------------------------------------------------------- 
  Line   foo/Bar/Baz.php (in context of class Foo\Bar\Baz)  
 ------ ----------------------------------------------------------------- 
  95     Calling forbidden method                                                                                                                                        
         Psr\Http\Message\StreamInterface:getContents().                                                                                                                 
 ------ -----------------------------------------------------------------