Skip to content

Commit 7b35481

Browse files
committed
// Fixed static call to non-static methods
// Added extra IDE project folders to gitignore // Incremented package version
1 parent 2d2e31c commit 7b35481

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,20 @@ $RECYCLE.BIN/
4545
Network Trash Folder
4646
Temporary Items
4747
.apdisk
48+
49+
50+
# =========================
51+
# IDE Project Folders
52+
# =========================
53+
.idea
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "danieltoader/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

Lines changed: 2 additions & 2 deletions
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)