Skip to content

Commit 42657a4

Browse files
committed
// Fixed static call to non-static methods
// Added extra IDE project folders to gitignore // Incremented package version
2 parents f006a05 + 7b35481 commit 42657a4

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.gitignore

+12-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@ Temporary Items
4848

4949

5050
# =========================
51-
# IDE folder
51+
# IDE Project Folders
5252
# =========================
5353
.idea
54-
nbproject
54+
.project
55+
nbproject
56+
57+
# =========================
58+
# Other files / Folders
59+
# =========================
60+
/build
61+
/vendor
62+
/phpunit.xml
63+
/humbug.json
64+
/tmp

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hvnlabs/php-crypttor",
33
"description": "A simple php library to deal with encrypting and decrypting strings using OpenSSL or MCrypt",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"license": "MIT",
66
"authors": [
77
{

src/Strategy/StrategyFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public function build($strategyString, $key, $algorithm, $mode)
2323
{
2424
switch ($strategyString) {
2525
case OpenSsl::STRATEGY_NAME:
26-
$cipher = static::buildOpenSsl($key, $algorithm, $mode);
26+
$cipher = $this->buildOpenSsl($key, $algorithm, $mode);
2727
break;
2828
case MCrypt::STRATEGY_NAME:
29-
$cipher = static::buildMCrypt($key, $algorithm, $mode);
29+
$cipher = $this->buildMCrypt($key, $algorithm, $mode);
3030
break;
3131
default:
3232
throw new \Exception(sprintf("%s strategy is not valid", $strategyString));

0 commit comments

Comments
 (0)