Coder Social home page Coder Social logo

curry684 / phpstan-src Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phpstan/phpstan-src

0.0 1.0 0.0 40.71 MB

PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository.

Home Page: https://phpstan.org/

License: MIT License

Shell 0.09% PHP 99.86% Hack 0.01% Makefile 0.04% Dockerfile 0.01% Latte 0.01%

phpstan-src's Introduction

PHPStan - PHP Static Analysis Tool

Build PHPStan Enabled


This repository (phpstan/phpstan-src) is for PHPStan's development only. Head to phpstan/phpstan for the main README, or to create an issue.

Contributing

Any contributions are welcome.

Installation

composer install

If you encounter dependency problem, try using export COMPOSER_ROOT_VERSION=1.11.x-dev

If you are using macOS and are using an older version of patch, you may have problems with patch application failure during composer install. Try using brew install gpatch to install a newer and supported patch version.

Building

PHPStan's source code is developed on PHP 8.1. For distribution in phpstan/phpstan package and as a PHAR file, the source code is transformed to run on PHP 7.2 and higher.

Initially you need to run composer install in case you aren't working in a directory which was built before.

Afterwards you can either run the whole build including linting and coding standards using

make

Running development version

You can also choose to run only part of the build. To analyse PHPStan by PHPStan itself, run:

make phpstan

Fixing code style

To detect code style issues, run:

make cs

And then to fix code style, run:

make cs-fix

Running tests

Run:

make tests

Debugging

  1. Make sure Xdebug is installed and configured.
  2. Add --xdebug option when running PHPStan. Without it PHPStan turns the debugger off at runtime.
  3. If you're not debugging the result cache, also add the --debug option.

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.

phpstan-src's People

Contributors

adaamz avatar arnaud-lb avatar canvural avatar carusogabriel avatar clxmstaab avatar dktapps avatar enumag avatar herndlm avatar iluuu1994 avatar janedbal avatar jantvrdik avatar jiripudil avatar jlherren avatar johnbillion avatar kukulich avatar localheinz avatar lookyman avatar mad-briller avatar ondrejmirtes avatar pepakriz avatar phpstan-bot avatar rajyan avatar renovate[bot] avatar rvanvelzen avatar schlndh avatar slamdunk avatar staabm avatar szepeviktor avatar vincentlanglet avatar zonuexe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.