Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .bettercodehub.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/php_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: PHP CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php_version: [7.4, 8.0, 8.1, 8.2]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug # Enable Xdebug extension, required by the project and used for coverage

- name: Install dependencies
run: composer install

- name: Install Code Climate Test Reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter

- name: Run Code Climate before-build
run: ./cc-test-reporter before-build

- name: Run tests and analysis
run: |
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
vendor/bin/psalm
vendor/bin/phpstan analyze

- name: Codecov
uses: codecov/[email protected]
with:
files: build/logs/clover.xml
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
phpweaver
===
[![Build Status](https://travis-ci.org/AJenbo/php-tracer-weaver.svg?branch=master)](https://travis-ci.org/AJenbo/php-tracer-weaver)
[![PHP CI](https://github.com/AJenbo/php-tracer-weaver/actions/workflows/php_ci.yml/badge.svg)](https://github.com/AJenbo/php-tracer-weaver/actions/workflows/php_ci.yml)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cc2ad72a9e4c47a9bbc84037a29857a8)](https://www.codacy.com/app/AJenbo/php-tracer-weaver?utm_source=github.com&utm_medium=referral&utm_content=AJenbo/php-tracer-weaver&utm_campaign=Badge_Grade)
[![Maintainability](https://api.codeclimate.com/v1/badges/412a2f0203c7ed255bee/maintainability)](https://codeclimate.com/github/AJenbo/php-tracer-weaver/maintainability)
[![BCH compliance](https://bettercodehub.com/edge/badge/AJenbo/php-tracer-weaver?branch=master)](https://bettercodehub.com/)
[![Coverage Status](https://coveralls.io/repos/github/AJenbo/php-tracer-weaver/badge.svg?branch=master)](https://coveralls.io/github/AJenbo/php-tracer-weaver?branch=master)
[![codecov](https://codecov.io/gh/AJenbo/php-tracer-weaver/branch/master/graph/badge.svg?token=wZULevQabT)](https://codecov.io/gh/AJenbo/php-tracer-weaver)

**phpweaver** is a tool for analysing parameter types in PHP code, using a combination of static and runtime analysis. It relies on the [xdebug extension](http://www.xdebug.org/docs/execution_trace) to trace function calls. The result of the analysis can then be used to generate docblock comments, with the proper type annotations.

Expand Down
22 changes: 12 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@
"bin": [
"bin/phpweaver"
],
"config": {
"sort-packages": true
},
"require": {
"php": "^7.1",
"php": "^7.4|^8.0",
"ext-xdebug": "*",
"composer/xdebug-handler": "^1.0",
"symfony/console": "^3.4"
"composer/xdebug-handler": "^3.0",
"symfony/console": "^5.4"
},
"require-dev": {
"codacy/coverage": "^1.0",
"php-coveralls/php-coveralls": "^2.0",
"phpstan/phpstan": "^0.12.11",
"phpstan/phpstan-phpunit": "^0.12.6",
"phpunit/phpunit": "^9.0",
"vimeo/psalm": "^3.9",
"mockery/mockery": "^1.3"
"mockery/mockery": "^1.6",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^9.6",
"vimeo/psalm": "^5.13"
},
"autoload": {
"psr-4": {
Expand Down
Loading