Skip to content

Commit

Permalink
Use tagged plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed Oct 28, 2017
1 parent 193da24 commit 5646d98
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 27 deletions.
15 changes: 2 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
"type": "pre-macro",
"name": "pre/immutable-classes",
"license": "MIT",
"repositories": [
{
"type": "path",
"url": "../pre-plugin"
}
],
"require": {
"pre/plugin": "*"
"pre/plugin": "^0.10.0"
},
"autoload": {
"psr-4": {
Expand All @@ -19,12 +13,7 @@
"require-dev": {
"phpunit/phpunit": "^5.0|^6.0"
},
"autoload-dev": {
"files": ["tests/stubs.php"]
},
"extra": {
"macros": ["source/macros.yay"]
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
2 changes: 1 addition & 1 deletion source/macros.yay
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ macro {
}
}

macro {
macro ·unsafe {
function __call(···parameters) {
immutability;
···body
Expand Down
2 changes: 0 additions & 2 deletions tests/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

use PHPUnit\Framework\TestCase;

putenv("PRE_BASE_DIR=" . realpath(__DIR__ . "/../"));

class MacroTest extends TestCase
{
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/specs/fallbacks.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MyImmutableClass

public function __call($method, $parameters)
{
if ($result·1 = $this->handleCallImmutableClassSetters($method, $parameters)) {
return $result·1;
if ($result = $this->handleCallImmutableClassSetters($method, $parameters)) {
return $result;
}

print "fallback";
Expand Down
9 changes: 0 additions & 9 deletions tests/stubs.php

This file was deleted.

0 comments on commit 5646d98

Please sign in to comment.