Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pFilename is required parameter for save #19

Merged
merged 3 commits into from
Jun 10, 2014

Conversation

sapfeer0k
Copy link
Contributor

Hello, folks!

I hope you'll find this pull request worthy. That isn't a good idea to pass invalid parameter value by default.
There are two solutions: the first one - assign right filepath (which isn't actually good, cause we don't know wich path is right for user, it may depends on many factors, such as OS, security, etc..) , and the second, which I choosed, mark this parameter as required and check it before use.
Any comments, taughts are very appreciated.

@Progi1984 Progi1984 self-assigned this Apr 24, 2014
@Progi1984 Progi1984 added this to the 0.2.0 milestone Apr 24, 2014
@Progi1984
Copy link
Member

@sapfeer0k : Good job, you're right. Could you add changes in changelog.md (https://github.com/PHPOffice/PHPPowerPoint/blob/master/CHANGELOG.md) ?

@ivanlanin
Copy link
Contributor

We have to change IWriter too to pass Travis.

@Progi1984
Copy link
Member

@sapfeer0k : Some news ?

@sapfeer0k
Copy link
Contributor Author

Sorry, for a long answer.. I've been busy...
Code is passing Travis now. Accept pull request, please.

Progi1984 added a commit that referenced this pull request Jun 10, 2014
pFilename is required parameter for save
@Progi1984 Progi1984 merged commit c5eab5d into PHPOffice:master Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants