Skip to content

Commit 85280e4

Browse files
authored
Merge pull request #12 from adrigar94/develop
new release 0.2.3
2 parents 0425dc2 + 1916c6d commit 85280e4

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to the "php-skeleton-generator" extension will be documented
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [0.2.3]
8+
- fix namespace creation at the psr4 root folder with multiple slashes
9+
- fix skeleton of trait, type of files is interface and must be a trait
710

811
## [0.2.2]
912
- fix return type for equals() method on skeleton for class

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<img src="images/logo.png" width="150" style="display: block; margin: 0 auto 10px">
44

55
Looking for an easy and quick way to generate PHP code skeletons? Check out our "PHP Skeleton Generator" extension! With just a few steps, you can create PHP classes, interfaces, traits, and enums with all the properties and methods you need. Our assistant guides you through the process, asking you for the options you need and generating the code for you. Save time and effort when creating your PHP projects with "PHP Skeleton Generator"!
6+
Namespace is generated from PSR-4 autoload in composer file.
67

78
## Features
89

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22
"name": "php-skeleton-generator",
33
"displayName": "PHP Skeleton Generator",
44
"description": "With just a few steps, you can create PHP classes, interfaces, traits, and enums with all the properties and methods you need. (PSR-4 compatible)",
5-
"version": "0.2.2",
5+
"version": "0.2.3",
66
"keywords": [
77
"php",
88
"generate",
9+
"generator",
10+
"skeleton",
911
"class",
1012
"interface",
1113
"enum",
1214
"trait",
1315
"wizard",
14-
"psr-4"
16+
"psr-4",
17+
"namespace",
18+
"constructor",
19+
"getter",
20+
"setter"
1521
],
1622
"publisher": "AdrianGarciaSabate",
1723
"engines": {
@@ -26,7 +32,8 @@
2632
"url": "https://github.com/adrigar94/php-skeleton-generator.git"
2733
},
2834
"categories": [
29-
"Other"
35+
"Other",
36+
"Programming Languages"
3037
],
3138
"license": "MIT",
3239
"icon": "images/logo.png",

src/utils/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function generateNamespace(folder: vscode.Uri): string {
8282
return namespace;
8383
}
8484
else if(basePath === folderPath.concat('\\\\')){
85-
return prefix.replace(/\\/, '');
85+
return prefix.replace(/\\$/, '');
8686
}
8787
}
8888
return folderPath;

src/wizardPhpSkeletons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ declare(strict_types=1);
300300
301301
namespace ${namespace};
302302
303-
interface ${traitName}
303+
trait ${traitName}
304304
{
305305
${declareMethods.join("\n\n")}
306306
}

0 commit comments

Comments
 (0)