添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
Are you sure pathinfo($partFileName, ... Word\PATHINFO_FILENAME) of type array|string can be used in concatenation ? Ignorable by Annotation

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

            $imgName = 'image_' . $rid . '_' . /** @scrutinizer ignore-type */ pathinfo($partFileName, PATHINFO_FILENAME) . '.' . $imgExt;
$this->indexClonedVariab ... umberOfClones, $xmlRow) of type string is incompatible with the type array expected by parameter $pieces of implode() . Ignorable by Annotation

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

        $result .= implode('', /** @scrutinizer ignore-type */ $this->indexClonedVariables($numberOfClones, $xmlRow));
It seems like $cloned can also be of type string ; however, parameter $pieces of implode() does only seem to accept array , maybe add an additional type check? Ignorable by Annotation

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

                    implode('', /** @scrutinizer ignore-type */ $cloned),
     * Usually, the name of main part document will be 'document.xml'. However, some .docx files (possibly those from Office 365, experienced also on documents from Word Online created from blank templates) have file 'document22.xml' in their zip archive instead of 'document.xml'. This method searches content types file to correctly determine the file name.
Are you sure pathinfo($documentPartNa ... Word\PATHINFO_BASENAME) of type array|string can be used in concatenation ? Ignorable by Annotation

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

        return 'word/_rels/' . /** @scrutinizer ignore-type */ pathinfo($documentPartName, PATHINFO_BASENAME) . '.rels';
  • Continously measure and track code quality
  • Eliminate bugs before they hit production
  • Code metrics simplified and easy to understand
  • Feedback on code quality changes between versions
  • Receive weekly code quality reports
  • Supported Languages

  • Python
  • Documentation

  • Getting Started
  • Configuring Scrutinizer
  • Refactorings
  • API Reference
  • Blog Posts

  • Viewing Analysis Data on GitHub and Bitbucket
  • Support for GitLab Repositories
  • Simplifying Debugging of UI Tests
  • View Analysis Results inside GitHub
  •